Small improvement

pull/199/head
M66B 4 years ago
parent 8bd1ad56cf
commit c4c3192a6a

@ -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…
Cancel
Save