From 720034969ff2e908a014409a91a0f4132f40f870 Mon Sep 17 00:00:00 2001 From: Mathias Caquet Date: Fri, 20 Dec 2019 17:07:03 +0100 Subject: [PATCH] Convert int into long to compare long with long --- library/src/main/java/hotchemi/android/rate/AppRate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/hotchemi/android/rate/AppRate.java b/library/src/main/java/hotchemi/android/rate/AppRate.java index b9a4907..8dbdc5b 100644 --- a/library/src/main/java/hotchemi/android/rate/AppRate.java +++ b/library/src/main/java/hotchemi/android/rate/AppRate.java @@ -54,7 +54,7 @@ public static boolean showRateDialogIfMeetsConditions(Activity activity) { } private static boolean isOverDate(long targetDate, int threshold) { - return new Date().getTime() - targetDate >= threshold * 24 * 60 * 60 * 1000; + return new Date().getTime() - targetDate >= ((long)threshold) * 24 * 60 * 60 * 1000; } public AppRate setLaunchTimes(int launchTimes) {