mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Small improvement
This commit is contained in:
parent
8bd1ad56cf
commit
c4c3192a6a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue