mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Transient sync on token refreshed
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user