This repository has been archived by the owner. It is now read-only.
File tree Expand file tree Collapse file tree
library/src/main/java/hotchemi/android/rate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ public final class AppRate {
2222
2323 private final DialogOptions options = new DialogOptions ();
2424
25- private int installDate = 10 ;
25+ private long installDate = 10 ;
2626
2727 private int launchTimes = 10 ;
2828
29- private int remindInterval = 1 ;
29+ private long remindInterval = 1 ;
3030
3131 private boolean isDebug = false ;
3232
@@ -53,11 +53,11 @@ public static boolean showRateDialogIfMeetsConditions(Activity activity) {
5353 return isMeetsConditions ;
5454 }
5555
56- private static boolean isOverDate (long targetDate , int threshold ) {
57- return new Date ().getTime () - targetDate >= ( long ) threshold * 24 * 60 * 60 * 1000 ;
56+ private static boolean isOverDate (long targetDate , long threshold ) {
57+ return new Date ().getTime () - targetDate >= threshold * 24 * 60 * 60 * 1000 ;
5858 }
5959
60- public AppRate setLaunchTimes (int launchTimes ) {
60+ public AppRate setLaunchTimes (long launchTimes ) {
6161 this .launchTimes = launchTimes ;
6262 return this ;
6363 }
@@ -67,7 +67,7 @@ public AppRate setInstallDays(int installDate) {
6767 return this ;
6868 }
6969
70- public AppRate setRemindInterval (int remindInterval ) {
70+ public AppRate setRemindInterval (long remindInterval ) {
7171 this .remindInterval = remindInterval ;
7272 return this ;
7373 }
You can’t perform that action at this time.
0 commit comments