Loading packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java +8 −2 Original line number Diff line number Diff line Loading @@ -362,11 +362,17 @@ public class TaskView extends FixedSizeFrameLayout implements Task.TaskCallbacks * Cancels any current transform animations. */ public void cancelTransformAnimation() { cancelDimAnimationIfExists(); Utilities.cancelAnimationWithoutCallbacks(mTransformAnimation); Utilities.cancelAnimationWithoutCallbacks(mDimAnimator); Utilities.cancelAnimationWithoutCallbacks(mOutlineAnimator); } private void cancelDimAnimationIfExists() { if (mDimAnimator != null) { mDimAnimator.cancel(); } } /** Enables/disables handling touch on this task view. */ public void setTouchEnabled(boolean enabled) { setOnClickListener(enabled ? this : null); Loading Loading @@ -546,7 +552,7 @@ public class TaskView extends FixedSizeFrameLayout implements Task.TaskCallbacks @Override public void onStartLaunchTargetEnterAnimation(TaskViewTransform transform, int duration, boolean screenPinningEnabled, ReferenceCountedTrigger postAnimationTrigger) { Utilities.cancelAnimationWithoutCallbacks(mDimAnimator); cancelDimAnimationIfExists(); // Dim the view after the app window transitions down into recents postAnimationTrigger.increment(); Loading Loading
packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java +8 −2 Original line number Diff line number Diff line Loading @@ -362,11 +362,17 @@ public class TaskView extends FixedSizeFrameLayout implements Task.TaskCallbacks * Cancels any current transform animations. */ public void cancelTransformAnimation() { cancelDimAnimationIfExists(); Utilities.cancelAnimationWithoutCallbacks(mTransformAnimation); Utilities.cancelAnimationWithoutCallbacks(mDimAnimator); Utilities.cancelAnimationWithoutCallbacks(mOutlineAnimator); } private void cancelDimAnimationIfExists() { if (mDimAnimator != null) { mDimAnimator.cancel(); } } /** Enables/disables handling touch on this task view. */ public void setTouchEnabled(boolean enabled) { setOnClickListener(enabled ? this : null); Loading Loading @@ -546,7 +552,7 @@ public class TaskView extends FixedSizeFrameLayout implements Task.TaskCallbacks @Override public void onStartLaunchTargetEnterAnimation(TaskViewTransform transform, int duration, boolean screenPinningEnabled, ReferenceCountedTrigger postAnimationTrigger) { Utilities.cancelAnimationWithoutCallbacks(mDimAnimator); cancelDimAnimationIfExists(); // Dim the view after the app window transitions down into recents postAnimationTrigger.increment(); Loading