Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipAnimationController.java +5 −0 Original line number Diff line number Diff line Loading @@ -328,6 +328,8 @@ public class PipAnimationController { private PipSurfaceTransactionHelper mSurfaceTransactionHelper; private @TransitionDirection int mTransitionDirection; protected PipContentOverlay mContentOverlay; // Flag to avoid double-end private boolean mHasRequestedEnd; private PipTransitionAnimator(TaskInfo taskInfo, SurfaceControl leash, @AnimationType int animationType, Loading Loading @@ -357,6 +359,7 @@ public class PipAnimationController { @Override public void onAnimationUpdate(ValueAnimator animation) { if (mHasRequestedEnd) return; applySurfaceControlTransaction(mLeash, mSurfaceControlTransactionFactory.getTransaction(), animation.getAnimatedFraction()); Loading @@ -364,6 +367,8 @@ public class PipAnimationController { @Override public void onAnimationEnd(Animator animation) { if (mHasRequestedEnd) return; mHasRequestedEnd = true; mCurrentValue = mEndValue; final SurfaceControl.Transaction tx = mSurfaceControlTransactionFactory.getTransaction(); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipAnimationController.java +5 −0 Original line number Diff line number Diff line Loading @@ -328,6 +328,8 @@ public class PipAnimationController { private PipSurfaceTransactionHelper mSurfaceTransactionHelper; private @TransitionDirection int mTransitionDirection; protected PipContentOverlay mContentOverlay; // Flag to avoid double-end private boolean mHasRequestedEnd; private PipTransitionAnimator(TaskInfo taskInfo, SurfaceControl leash, @AnimationType int animationType, Loading Loading @@ -357,6 +359,7 @@ public class PipAnimationController { @Override public void onAnimationUpdate(ValueAnimator animation) { if (mHasRequestedEnd) return; applySurfaceControlTransaction(mLeash, mSurfaceControlTransactionFactory.getTransaction(), animation.getAnimatedFraction()); Loading @@ -364,6 +367,8 @@ public class PipAnimationController { @Override public void onAnimationEnd(Animator animation) { if (mHasRequestedEnd) return; mHasRequestedEnd = true; mCurrentValue = mEndValue; final SurfaceControl.Transaction tx = mSurfaceControlTransactionFactory.getTransaction(); Loading