diff options
| author | 2020-04-13 16:40:59 -0700 | |
|---|---|---|
| committer | 2020-04-13 16:56:24 -0700 | |
| commit | a56c8a2ce2810229eb526c10f9e7af1a537eaddf (patch) | |
| tree | c1aef45236ad144439fa8b1c4403446a60127017 | |
| parent | 65a3920a07502314289ff5c1a6686fb7de293f18 (diff) | |
Expand minimized split stack on relaunch-attempt
If a relaunch-attempt is made on the app in a minimized
primary-split, just expand it. This way its clear to the user
what happened and is much closer to their intent. Previously,
this was just opening recents; however, that doesn't make sense
for pixel launcher (which remains in minimized-dock even with
recents active) because the actual launched-app is still
not-focusable and partially obscured.
Also, modified the restart-attempt logic to directly check if
divider is minimized rather than homeTaskVisible since that is
semantically what matters.
Bug: 152772854
Test: Open an app into split-screen primary with launcher in
secondary. Then launch the same app from launcher.
Change-Id: Ib04d9a949aff5a5202e1f83c820cb3e9589598fb
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/OverviewProxyRecentsImpl.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyRecentsImpl.java b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyRecentsImpl.java index 5bf44c6a3003..8051998e2530 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyRecentsImpl.java +++ b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyRecentsImpl.java @@ -71,12 +71,13 @@ public class OverviewProxyRecentsImpl implements RecentsImplementation { public void onActivityRestartAttempt(ActivityManager.RunningTaskInfo task, boolean homeTaskVisible, boolean clearedTask) { if (task.configuration.windowConfiguration.getWindowingMode() - != WINDOWING_MODE_SPLIT_SCREEN_PRIMARY) { + != WINDOWING_MODE_SPLIT_SCREEN_PRIMARY || !mDividerOptional.isPresent()) { return; } - if (homeTaskVisible) { - showRecentApps(false /* triggeredFromAltTab */); + final Divider divider = mDividerOptional.get(); + if (divider.isMinimized()) { + divider.onUndockingTask(); } } }; |