1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Small improvement

This commit is contained in:
M66B 2021-05-22 14:16:03 +02:00
parent 8bd1ad56cf
commit c4c3192a6a

View file

@ -104,7 +104,7 @@ public class ServicePowerControl extends ControlsProviderService {
@Override
public void performControlAction(@NonNull String controlId, @NonNull ControlAction action, @NonNull Consumer<Integer> consumer) {
if (action instanceof BooleanAction) {
if (DEVICE_SYNC_TOGGLE.equals(controlId)) {
consumer.accept(ControlAction.RESPONSE_OK);
boolean enabled = ((BooleanAction) action).getNewState();