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

Commit 41d8c687 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 am: 1fa90bc5

am: e60cc7da

Change-Id: I88c6d3c7cf391ef565f1dfff434ac434f642b26b
parents 9c4460b6 e60cc7da
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -199,6 +199,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;