release 2.0.13 Beta3 for YingYongBao

This commit is contained in:
hyb1996
2017-07-09 11:28:28 +08:00
parent a660a98539
commit c6e31dcb41
8 changed files with 40 additions and 27 deletions

View File

@@ -147,7 +147,12 @@ public class Pref {
def().edit().putLong(KEY_LAST_SHOW_AD_MILLIS, System.currentTimeMillis()).apply();
return true;
case "Off":
return false;
lastShowMillis = def().getLong(KEY_LAST_SHOW_AD_MILLIS, 0);
if (System.currentTimeMillis() - lastShowMillis < TimeUnit.DAYS.toMillis(2)) {
return false;
}
def().edit().putLong(KEY_LAST_SHOW_AD_MILLIS, System.currentTimeMillis()).apply();
return true;
}
return true;
}