mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 09:08:37 +00:00
committed by
Moxie Marlinspike
parent
b40f0ffeb0
commit
4696837f2f
@@ -327,8 +327,9 @@ public class Util {
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isBuildFresh() {
|
||||
return BuildConfig.BUILD_TIMESTAMP + TimeUnit.DAYS.toMillis(90) > System.currentTimeMillis();
|
||||
public static int getDaysTillBuildExpiry() {
|
||||
int age = (int)TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - BuildConfig.BUILD_TIMESTAMP);
|
||||
return 90 - age;
|
||||
}
|
||||
|
||||
@TargetApi(VERSION_CODES.LOLLIPOP)
|
||||
|
||||
Reference in New Issue
Block a user