mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Small improvement
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user