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

Commit 7886c56a authored by Tony Wickham's avatar Tony Wickham
Browse files

Reapply recents attached state in createActivityController()

There were a couple cases where swiping up showed the adjacent task
even though we had set it as detached from the app window.

Test:
- Launch an app from all apps, swipe to home
- Force stop launcher, swipe to home

Bug: 129985827
Change-Id: Ib8a836e3cc467d44be601d81e3a7d04d6487c968
parent 752df2ce
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -186,6 +186,12 @@ public final class LauncherActivityControllerHelper implements ActivityControlHe
            @Override
            public void createActivityController(long transitionLength) {
                createActivityControllerInternal(activity, fromState, transitionLength, callback);
                // Creating the activity controller animation sometimes reapplies the launcher state
                // (because we set the animation as the current state animation), so we reapply the
                // attached state here as well to ensure recents is shown/hidden appropriately.
                if (SysUINavigationMode.getMode(activity) == Mode.NO_BUTTON) {
                    setRecentsAttachedToAppWindow(mIsAttachedToWindow, false);
                }
            }

            @Override