mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-19 13:48:58 +00:00
Prevent race condition
This commit is contained in:
parent
b53182fa20
commit
02734b20bc
1 changed files with 2 additions and 1 deletions
|
@ -3649,7 +3649,8 @@ class Core {
|
||||||
}
|
}
|
||||||
|
|
||||||
long getIdleTime() {
|
long getIdleTime() {
|
||||||
return (lastActivity == null ? 0 : SystemClock.elapsedRealtime() - lastActivity);
|
Long last = lastActivity;
|
||||||
|
return (last == null ? 0 : SystemClock.elapsedRealtime() - last);
|
||||||
}
|
}
|
||||||
|
|
||||||
long getSequence(long folder, int priority) {
|
long getSequence(long folder, int priority) {
|
||||||
|
|
Loading…
Reference in a new issue