diff options
| -rw-r--r-- | services/core/java/com/android/server/wm/ActivityRecord.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/ActivityRecord.java b/services/core/java/com/android/server/wm/ActivityRecord.java index 6016bbd52caa..9932272f7473 100644 --- a/services/core/java/com/android/server/wm/ActivityRecord.java +++ b/services/core/java/com/android/server/wm/ActivityRecord.java @@ -5096,7 +5096,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A final boolean recentsAnimating = isAnimating(PARENTS, ANIMATION_TYPE_RECENTS); if (okToAnimate(true /* ignoreFrozen */, canTurnScreenOn()) && (appTransition.isTransitionSet() - || (recentsAnimating && !isActivityTypeHome()))) { + || (recentsAnimating && !isActivityTypeHome())) + // If the visibility change during enter PIP, we don't want to include it in app + // transition to affect the animation theme, because the Pip organizer will animate + // the entering PIP instead. + && !mWaitForEnteringPinnedMode) { if (visible) { displayContent.mOpeningApps.add(this); mEnteringAnimation = true; |