mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
use SystemClock.elapsedRealtime() everywhere
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
664727b2a6
commit
1584de9769
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ public final class PassCodeManager {
|
|||
}
|
||||
|
||||
private boolean passCodeShouldBeRequested(Long timestamp) {
|
||||
return (System.currentTimeMillis() - timestamp) > PASS_CODE_TIMEOUT &&
|
||||
return (SystemClock.elapsedRealtime() - timestamp) > PASS_CODE_TIMEOUT &&
|
||||
visibleActivitiesCounter <= 0 && isPassCodeEnabled();
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ public final class PassCodeManager {
|
|||
}
|
||||
|
||||
private boolean deviceCredentialsShouldBeRequested(Long timestamp, Activity activity) {
|
||||
return (System.currentTimeMillis() - timestamp) > PASS_CODE_TIMEOUT && visibleActivitiesCounter <= 0 &&
|
||||
return (SystemClock.elapsedRealtime() - timestamp) > PASS_CODE_TIMEOUT && visibleActivitiesCounter <= 0 &&
|
||||
deviceCredentialsAreEnabled(activity);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue