Transient sync on token refreshed

This commit is contained in:
M66B 2022-12-30 09:17:02 +01:00
parent e54448f1b5
commit 2daa5fb5dc
1 changed files with 4 additions and 1 deletions

View File

@ -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()) {