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

Commit 9f03a4ef authored by Bruno Martins's avatar Bruno Martins Committed by Luca Stefani
Browse files

WifiTile: Avoid NPE during boot phase

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

Change-Id: Icd5003e67a725323a5445a936d5a38a3006c5431
parent 8b802eec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ public class WifiTile extends QSTileImpl<SignalState> {

    @Override
    public void handleSetListening(boolean listening) {
        if (mController == null) return;
        if (listening) {
            mController.addCallback(mSignalCallback);
        } else {