diff --git a/app/src/main/java/eu/faircode/email/ServicePowerControl.java b/app/src/main/java/eu/faircode/email/ServicePowerControl.java index b58a4cb922..e854354cd1 100644 --- a/app/src/main/java/eu/faircode/email/ServicePowerControl.java +++ b/app/src/main/java/eu/faircode/email/ServicePowerControl.java @@ -104,7 +104,7 @@ public class ServicePowerControl extends ControlsProviderService { @Override public void performControlAction(@NonNull String controlId, @NonNull ControlAction action, @NonNull Consumer consumer) { - if (action instanceof BooleanAction) { + if (DEVICE_SYNC_TOGGLE.equals(controlId)) { consumer.accept(ControlAction.RESPONSE_OK); boolean enabled = ((BooleanAction) action).getNewState();