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

Commit f74ff847 authored by Bruno Martins's avatar Bruno Martins
Browse files

DndTile: Avoid NPE during boot phase

 * Listening handling can only take place once mController
   is properly initialized.

Change-Id: Icbef2d506417f132e1ab47e23d457dacb9c00146
parent 73e7a1a7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -235,6 +235,7 @@ public class DndTile extends QSTileImpl<BooleanState> {
    public void handleSetListening(boolean listening) {
        if (mListening == listening) return;
        mListening = listening;
        if (mController == null) return;
        if (mListening) {
            mController.addCallback(mZenCallback);
            Prefs.registerListener(mContext, mPrefListener);