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

Commit 5aefbafb authored by Bruno Martins's avatar Bruno Martins
Browse files

BluetoothTile: Avoid NPE during boot up phase

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

Change-Id: Ice0c19321d8632bd55e1d403de95914ad53bad30
parent 73e7a1a7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ public class BluetoothTile extends QSTileImpl<BooleanState> {

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