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

Commit e8159410 authored by lijilou's avatar lijilou Committed by Jilou li
Browse files

Transition: fix NPE problem.

No top non finishing activity exist in task.

Test: monkey test
Flag: EXEMPT bugfix
Bug: 387957062
Change-Id: I58e3fd1bca3088b0f187d3a12994d3ceb6ed7553
parent b45d2c4d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1371,6 +1371,7 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
                        if (!tr.isAttached() || !tr.isVisibleRequested()
                                || !tr.inPinnedWindowingMode()) return;
                        final ActivityRecord currTop = tr.getTopNonFinishingActivity();
                        if (currTop == null) return;
                        if (currTop.inPinnedWindowingMode()) return;
                        Slog.e(TAG, "Enter-PIP was started but not completed, this is a Shell/SysUI"
                                + " bug. This state breaks gesture-nav, so attempting clean-up.");