From c25af40002eb9de4e30b801b35e9e5b2474aafdf Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Thu, 12 Jan 2017 11:57:11 -0800 Subject: [PATCH] Follow up fixes for expandhelper Change-Id: I51fab5bee481889101e8f5553b9a5d9fe2cba6c3 Test: manual --- packages/SystemUI/src/com/android/systemui/ExpandHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/ExpandHelper.java b/packages/SystemUI/src/com/android/systemui/ExpandHelper.java index d98bb23d88da3..8141b288ddee1 100644 --- a/packages/SystemUI/src/com/android/systemui/ExpandHelper.java +++ b/packages/SystemUI/src/com/android/systemui/ExpandHelper.java @@ -326,7 +326,7 @@ public class ExpandHelper implements Gefingerpoken { case MotionEvent.ACTION_CANCEL: case MotionEvent.ACTION_UP: if (DEBUG) Log.d(TAG, "up/cancel"); - finishExpanding(ev.getActionMasked() == MotionEvent.ACTION_CANCEL, + finishExpanding(ev.getActionMasked() == MotionEvent.ACTION_CANCEL /* forceAbort */, getCurrentVelocity()); clearView(); break; @@ -587,6 +587,9 @@ public class ExpandHelper implements Gefingerpoken { mFlingAnimationUtils.apply(mScaleAnimation, currentHeight, targetHeight, velocity); mScaleAnimation.start(); } else { + if (targetHeight != currentHeight) { + mScaler.setHeight(targetHeight); + } mCallback.setUserExpandedChild(mResizedView, nowExpanded); mCallback.setUserLockedChild(mResizedView, false); }