From 9cd731a013cca45807b2ae1ed19cecc53311a5c6 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Thu, 22 May 2014 14:26:06 +0200 Subject: Fix weird state with QS expansion. Bug: 15147023 Change-Id: Ief32ee756e22b330e0fb63b0dab64aa83ffb9124 --- .../com/android/systemui/statusbar/phone/NotificationPanelView.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/SystemUI/src/com/android') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 7e3bf68..123a4f0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -545,6 +545,9 @@ public class NotificationPanelView extends PanelView implements } private void flingSettings(float vel, boolean expand) { float target = expand ? mQsMaxExpansionHeight : mQsMinExpansionHeight; + if (target == mQsExpansionHeight) { + return; + } ValueAnimator animator = ValueAnimator.ofFloat(mQsExpansionHeight, target); mFlingAnimationUtils.apply(animator, mQsExpansionHeight, target, vel); animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { -- cgit v1.1