mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Transient sync on token refreshed
This commit is contained in:
parent
e54448f1b5
commit
2daa5fb5dc
1 changed files with 4 additions and 1 deletions
|
@ -373,7 +373,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
}
|
||||
if (current.canRun(ServiceSynchronize.this)) {
|
||||
event = true;
|
||||
start(current, current.accountState.isEnabled(current.enabled) || sync, force);
|
||||
boolean dosync = (sync ||
|
||||
current.accountState.isEnabled(current.enabled) ||
|
||||
!prev.accountState.equals(current.accountState)); // Token refreshed
|
||||
start(current, dosync, force);
|
||||
}
|
||||
} else if (current.canRun(ServiceSynchronize.this) &&
|
||||
state != null && !state.isAlive()) {
|
||||
|
|
Loading…
Reference in a new issue