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

Commit 645e988e authored by Ben Lin's avatar Ben Lin
Browse files

PiP: Safeguard in calling on menu view in case it's not created.

In case SystemUI crashes, there is a possibility that we can call on
showMenu() upon SysUI restart without the menu instance created. We
should at least not crash SysUI again for this.

Bug: 173683353
Test: None
Change-Id: I67c11ffaf9f7e6972cc4b005f07f8fc6897ac5c1
parent c092761a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -239,7 +239,9 @@ public class PipMenuActivityController {
                    + " callers=\n" + Debug.getCallers(5, "    "));
        }

        maybeCreateSyncApplier();
        if (!maybeCreateSyncApplier()) {
            return;
        }

        mPipMenuView.showMenu(menuState, stackBounds, allowMenuTimeout, willResizeMenu, withDelay,
                showResizeHandle);