diff options
| author | 2021-06-16 13:38:49 +0000 | |
|---|---|---|
| committer | 2021-06-16 13:38:49 +0000 | |
| commit | 04350c57de611072638d51971caeac58aac1eedf (patch) | |
| tree | 029c0be7b5b05a0eb31b8d2a7ffa8e551bae9f81 | |
| parent | 4721ef7c65aff407d9f10e9ca0bcef4825e5f858 (diff) | |
| parent | dd21fabb740ec61e7c0cb1fd5c75e56494af123f (diff) | |
Merge "Don't promote the animation on Task's parent when clearing task" into sc-dev
| -rw-r--r-- | services/core/java/com/android/server/wm/AppTransitionController.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/AppTransitionController.java b/services/core/java/com/android/server/wm/AppTransitionController.java index eaebb6f1ce74..4acadb21b5e3 100644 --- a/services/core/java/com/android/server/wm/AppTransitionController.java +++ b/services/core/java/com/android/server/wm/AppTransitionController.java @@ -623,7 +623,11 @@ public class AppTransitionController { siblings.add(current); boolean canPromote = true; - if (parent == null || !parent.canCreateRemoteAnimationTarget()) { + if (parent == null || !parent.canCreateRemoteAnimationTarget() + // We cannot promote the animation on Task's parent when the task is in + // clearing task in case the animating get stuck when performing the opening + // task that behind it. + || (current.asTask() != null && current.asTask().mInRemoveTask)) { canPromote = false; } else { // In case a descendant of the parent belongs to the other group, we cannot promote |