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

Commit b037ba06 authored by Brad Stenning's avatar Brad Stenning
Browse files

Add null check to confirm there is a quick settings panel

Bug: 77324282

Test: manually launched on head unit
Change-Id: If6b823e5cf0fe48906dd99c2cfcf9c342a69cdcf
parent 1264d880
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1428,13 +1428,13 @@ public class StatusBar extends SystemUI implements DemoMode,
    }

    public void addQsTile(ComponentName tile) {
        if (mQSPanel.getHost() != null) {
        if (mQSPanel != null && mQSPanel.getHost() != null) {
            mQSPanel.getHost().addTile(tile);
        }
    }

    public void remQsTile(ComponentName tile) {
        if (mQSPanel.getHost() != null) {
        if (mQSPanel != null && mQSPanel.getHost() != null) {
            mQSPanel.getHost().removeTile(tile);
        }
    }