Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fa90bc5 authored by Bruno Martins's avatar Bruno Martins Committed by android-build-merger
Browse files

Merge "DndTile: Avoid yet another NPE during boot up phase"

am: 2446a107

Change-Id: I211f94c3dedc4f288d436ba3aff7f52309a994d3
parents e3a6b678 2446a107
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -174,6 +174,7 @@ public class DndTile extends QSTileImpl<BooleanState> {

    @Override
    protected void handleUpdateState(BooleanState state, Object arg) {
        if (mController == null) return;
        final int zen = arg instanceof Integer ? (Integer) arg : mController.getZen();
        final boolean newValue = zen != ZEN_MODE_OFF;
        final boolean valueChanged = state.value != newValue;