diff options
| author | 2018-05-17 20:02:50 +0000 | |
|---|---|---|
| committer | 2018-05-17 20:02:50 +0000 | |
| commit | 505267f103df8af03995a53421c363da166ccc84 (patch) | |
| tree | 39e1d2175f19cf85e4c5470c1b8477ad44207269 | |
| parent | 7a881c36ad9e3776e2cd2366ce9e7aaff42d8dc2 (diff) | |
| parent | a51dcaae7a0510dc8db84b93673227c21668fd34 (diff) | |
Merge "Fixes docked stack from being invisible from assistant stack over" into pi-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java | 3 | ||||
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityStack.java | 15 |
2 files changed, 13 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java b/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java index 8d89314c2e21..24e39bfdf953 100644 --- a/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java +++ b/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java @@ -781,7 +781,8 @@ public class DividerView extends FrameLayout implements OnTouchListener, mMinimizedSnapAlgorithm = null; mDockedStackMinimized = minimized; initializeSnapAlgorithm(); - if (mIsInMinimizeInteraction != minimized) { + if (mIsInMinimizeInteraction != minimized || mCurrentAnimator != null) { + cancelFlingAnimation(); if (minimized) { // Relayout to recalculate the divider shadow when minimizing requestLayout(); diff --git a/services/core/java/com/android/server/am/ActivityStack.java b/services/core/java/com/android/server/am/ActivityStack.java index 818a609ecb60..aaa51615bbb9 100644 --- a/services/core/java/com/android/server/am/ActivityStack.java +++ b/services/core/java/com/android/server/am/ActivityStack.java @@ -17,6 +17,7 @@ package com.android.server.am; import static android.app.ITaskStackListener.FORCED_RESIZEABLE_REASON_SPLIT_SCREEN; +import static android.app.WindowConfiguration.ACTIVITY_TYPE_ASSISTANT; import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME; import static android.app.WindowConfiguration.ACTIVITY_TYPE_RECENTS; import static android.app.WindowConfiguration.ACTIVITY_TYPE_STANDARD; @@ -1759,10 +1760,16 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai // In this case the home stack isn't resizeable even though we are in split-screen // mode. We still want the primary splitscreen stack to be visible as there will be // a slight hint of it in the status bar area above the non-resizeable home - // activity. - if (windowingMode == WINDOWING_MODE_SPLIT_SCREEN_PRIMARY - && other.getActivityType() == ACTIVITY_TYPE_HOME) { - return true; + // activity. In addition, if the fullscreen assistant is over primary splitscreen + // stack, the stack should still be visible in the background as long as the recents + // animation is running. + final int activityType = other.getActivityType(); + if (windowingMode == WINDOWING_MODE_SPLIT_SCREEN_PRIMARY) { + if (activityType == ACTIVITY_TYPE_HOME + || (activityType == ACTIVITY_TYPE_ASSISTANT + && mWindowManager.getRecentsAnimationController() != null)) { + return true; + } } if (other.isStackTranslucent(starting)) { // Can be visible behind a translucent fullscreen stack. |