Revert "Prevent recents from closing while moving PiP to fullscreen."
This reverts commit 744e6e3aef4d4b6cb3a75e8ecbbc1796da2388b2
to prevent Recents from shown again after an activity is PIPed
immediately after the fullscreen.
Bug: 28333917
Change-Id: Ifeceb910eefc3eef109bdc3ed24e11109f2cf9b4
diff --git a/services/core/java/com/android/server/wm/BoundsAnimationController.java b/services/core/java/com/android/server/wm/BoundsAnimationController.java
index 1f44b29..debb382 100644
--- a/services/core/java/com/android/server/wm/BoundsAnimationController.java
+++ b/services/core/java/com/android/server/wm/BoundsAnimationController.java
@@ -149,15 +149,11 @@
public void onAnimationEnd(Animator animation) {
if (DEBUG) Slog.d(TAG, "onAnimationEnd: mTarget=" + mTarget
+ " mMoveToFullScreen=" + mMoveToFullScreen + " mWillReplace=" + mWillReplace);
+
+ finishAnimation();
if (mMoveToFullScreen && !mWillReplace) {
mTarget.moveToFullscreen();
}
-
- // If we finish the animation before we move the target to fullscreen,
- // recents may close itself and we may try and resume the previous
- // fullscreen app leading to churn and flicker after we then move
- // our target to fullscreen.
- finishAnimation();
}
@Override