Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1be7ca8f authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Cancel animation before destroying of SurfaceControl." into rvc-dev am:...

Merge "Cancel animation before destroying of SurfaceControl." into rvc-dev am: 3ee0b75a am: 344d4134

Change-Id: Ic2af9396cd9b70ac8fed5b9f2ec026f7dde627d9
parents e826f7e9 344d4134
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ class SurfaceFreezer {
     */
    void unfreeze(SurfaceControl.Transaction t) {
        if (mSnapshot != null) {
            mSnapshot.destroy(t);
            mSnapshot.cancelAnimation(t, false /* restarting */);
        }
        if (mLeash == null) {
            return;
@@ -212,7 +212,7 @@ class SurfaceFreezer {
         * @param t The transaction to use for all cancelling surface operations.
         * @param restarting Whether we are restarting the animation.
         */
        private void cancelAnimation(SurfaceControl.Transaction t, boolean restarting) {
        void cancelAnimation(SurfaceControl.Transaction t, boolean restarting) {
            final SurfaceControl leash = mSurfaceControl;
            final AnimationAdapter animation = mAnimation;
            final SurfaceAnimator.OnAnimationFinishedCallback animationFinishedCallback =
@@ -229,7 +229,6 @@ class SurfaceFreezer {
                }
            }
            if (!restarting) {
                // TODO: do we need to destroy?
                destroy(t);
            }
        }