From c4c3192a6aa977ed18452517e834cdc9f1b8841f Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 22 May 2021 14:16:03 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/ServicePowerControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();