diff options
| author | 2024-06-05 02:31:23 +0000 | |
|---|---|---|
| committer | 2024-06-05 02:31:23 +0000 | |
| commit | 18bc6e82f0e117f59e4f477b0d578e1b48014e49 (patch) | |
| tree | d1f195625d5fc78885cfb26650bdc6568d9f97fd /libs | |
| parent | a1531cf789b8f8c4a099910239fcab2c4e28ec55 (diff) | |
| parent | 262fe527a159eb428a57647eb955758bc918e13a (diff) | |
Merge "Polish a weird transition that open animation can apply on non-top task." into main
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java b/libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java index 65fda9729f00..b056c18cc9f3 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java @@ -655,8 +655,10 @@ public class Transitions implements RemoteCallable<Transitions>, } if (change.hasFlags(FLAG_NO_ANIMATION)) { hasNoAnimation = true; - } else { - // at-least one relevant participant *is* animated, so we need to animate. + } else if (!TransitionUtil.isOrderOnly(change) && !change.hasFlags(FLAG_IS_OCCLUDED)) { + // Ignore the order only or occluded changes since they shouldn't be visible during + // animation. For anything else, we need to animate if at-least one relevant + // participant *is* animated, return false; } } |