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

Commit d9839562 authored by Lujiang Xue's avatar Lujiang Xue
Browse files

null check on qspanel before called method on it.

Bug: 77324282

Test: manually launched on head unit
Change-Id: Ia484d527cd07f6998d6e9907250ae9eb0c031674
parent 7ee86d1d
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1425,12 +1425,16 @@ public class StatusBar extends SystemUI implements DemoMode,
    }

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

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

    public void clickTile(ComponentName tile) {
        mQSPanel.clickTile(tile);