diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index dcb15cd61e..e415123a56 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1345,7 +1345,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences private void onState(Intent intent) { boolean fg = intent.getBooleanExtra("foreground", false); - foreground.setValue(fg); + foreground.postValue(fg); for (Core.State state : coreStates.values()) state.setForeground(fg); }