diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-09-25 14:24:30 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-09-25 14:26:25 -0700 |
commit | 11137385a3a7d0afd58b69f0a0b037e255dde12f (patch) | |
tree | c44995532d54d84e6ee69228adf08f239812710a /quickstep | |
parent | d65f5f7f1a692b03bee09a15f4e0c865ed97fa61 (diff) | |
download | android_packages_apps_Trebuchet-11137385a3a7d0afd58b69f0a0b037e255dde12f.tar.gz android_packages_apps_Trebuchet-11137385a3a7d0afd58b69f0a0b037e255dde12f.tar.bz2 android_packages_apps_Trebuchet-11137385a3a7d0afd58b69f0a0b037e255dde12f.zip |
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
Diffstat (limited to 'quickstep')
-rw-r--r-- | quickstep/src/com/android/quickstep/OverviewCommandHelper.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java index 1a9915c41..d9626c4bd 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 |