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

Commit 688a322b authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Clear recents entry when task no longer supports multiWindow

* Most app support multi-window in folded mode, camera does not.
Maybe that's why this went under the radar

Test: Repro steps don't occur from bug
Fixes: 323461567
Change-Id: I0fd6f47c42a9d58e07b3fa38f314d9cce4a9ba38
parent c5b8dc18
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3396,6 +3396,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
                final int stageType = isMainStage ? STAGE_TYPE_MAIN : STAGE_TYPE_SIDE;
                final WindowContainerTransaction wct = new WindowContainerTransaction();
                prepareExitSplitScreen(stageType, wct);
                clearSplitPairedInRecents(EXIT_REASON_APP_DOES_NOT_SUPPORT_MULTIWINDOW);
                mSplitTransitions.startDismissTransition(wct, StageCoordinator.this, stageType,
                        EXIT_REASON_APP_DOES_NOT_SUPPORT_MULTIWINDOW);
                Log.w(TAG, splitFailureMessage("onNoLongerSupportMultiWindow",