From 182eb9dc15d320563ed91b0874b2b0a7749bc7fd Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Tue, 22 Nov 2022 13:20:49 -0800 Subject: [PATCH] Prevent empty recents going home when splitting with taskbar present * Recents is empty, so it thinks we need to go home * Split selection state prevents that, since second app can be choosen from taskbar Fixes: 260024461 Test: Recents still goes home when taskbar not present and has no recent tasks. Doesn't go home when split with a single task; second task launches correctly from taskbar Change-Id: Ib5fc7989c66c5efccde53ea48319f9669cd664e2 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 80b41a7007..fa74c6463d 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -42,6 +42,7 @@ import static com.android.launcher3.anim.Interpolators.LINEAR; import static com.android.launcher3.anim.Interpolators.OVERSHOOT_0_75; import static com.android.launcher3.anim.Interpolators.clampToProgress; import static com.android.launcher3.config.FeatureFlags.ENABLE_LAUNCH_FROM_STAGED_APP; +import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_IN_OVERVIEW; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_OVERVIEW_ACTIONS_SPLIT; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_CLEAR_ALL; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_DISMISS_SWIPE_UP; @@ -3475,7 +3476,8 @@ public abstract class RecentsView