Transient sync on token refreshed

pull/210/head
M66B 2 years ago
parent e54448f1b5
commit 2daa5fb5dc

@ -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…
Cancel
Save