diff options
| -rw-r--r-- | services/core/java/com/android/server/wm/SurfaceFreezer.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/SurfaceFreezer.java b/services/core/java/com/android/server/wm/SurfaceFreezer.java index 36861aa1f88e..a696dafa7dd3 100644 --- a/services/core/java/com/android/server/wm/SurfaceFreezer.java +++ b/services/core/java/com/android/server/wm/SurfaceFreezer.java @@ -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); } } |