Small improvement

This commit is contained in:
M66B
2023-01-11 13:32:12 +01:00
parent aa1f4291a9
commit ee546fcd98

View File

@@ -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);
}