Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 4e55df6

Browse files
committed
Changed argument and definition to long type
1 parent c11f7a4 commit 4e55df6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

library/src/main/java/hotchemi/android/rate/AppRate.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)