From 4a2b9d5e369cc764f4a3093f4ee8b4b2b4ce2f1c Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 24 Jul 2018 14:50:56 -0700 Subject: [PATCH] Fix bug where icon appears large until transluscent activity finishes. It appears large because the pressed state of the view increases the scale, and we want to leave the pressed state until the activity is launched. With the remote app transitions, we now have a callback for when the activity is done launching so we then cancel the "stayPressed" state. Bug: 111742067 Change-Id: I25725e908b12f4dd1256294a26232b289db2d057 --- .../android/launcher3/LauncherAppTransitionManagerImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java b/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java index 14633afa52..37d0b12bdc 100644 --- a/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java +++ b/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java @@ -537,6 +537,9 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag @Override public void onAnimationEnd(Animator animation) { // Reset launcher to normal state + if (isBubbleTextView) { + ((BubbleTextView) v).setStayPressed(false); + } v.setVisibility(View.VISIBLE); ((ViewGroup) mDragLayer.getParent()).removeView(mFloatingView); }