From 11137385a3a7d0afd58b69f0a0b037e255dde12f Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 25 Sep 2018 14:24:30 -0700 Subject: [PATCH] Scaling down the icon in same path as scaling up If for some reason, the animation is not created (eg in case of forced rotation), we should also skip scaling down the icon so that the final UI is always in a consistent state. Bug: 78793089 Change-Id: Ie3e8b6d14b05ee983bc5e12401c1fa078034e392 --- .../src/com/android/quickstep/OverviewCommandHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java index 1a9915c414..d9626c4bdf 100644 --- a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java +++ b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java @@ -280,7 +280,6 @@ public class OverviewCommandHelper { factory.createActivityController(RECENTS_LAUNCH_DURATION, INTERACTION_NORMAL); mActivity = activity; mRecentsView = mActivity.getOverviewPanel(); - mRecentsView.setRunningTaskIconScaledDown(true); if (!mUserEventLogged) { activity.getUserEventDispatcher().logActionCommand(Action.Command.RECENTS_BUTTON, mHelper.getContainerType(), ContainerType.TASKSWITCHER); @@ -298,6 +297,9 @@ public class OverviewCommandHelper { if (mListener != null) { mListener.unregister(); } + if (mRecentsView != null) { + mRecentsView.setRunningTaskIconScaledDown(true); + } AnimatorSet anim = new AnimatorSet(); anim.addListener(new AnimationSuccessListener() { @Override