From f0beb7f8fb89fedbabf29567ddc75d138f4dfda8 Mon Sep 17 00:00:00 2001 From: Dave Kover Date: Fri, 1 Jul 2016 16:19:19 -0700 Subject: Fix slow anim when using a gesture to open status bar pulldown When using a custom launcher, like Nova, it is possible to set a gesture to open the status bar pulldown. It does not open at the same speed as when using a finder to pull down from the top of the screen at the status bar. This fixes that. Change-Id: If3f14f14ef5ed4f14495472d0335cb11d743a5a1 --- .../SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java index 638a5d5..3a2c84c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -680,7 +680,7 @@ public abstract class PanelView extends FrameLayout { } mUpdateExpandOnLayout = isFullyCollapsed(); mFlingAnimationUtils.apply(animator, mExpandedHeight, target, vel, getHeight()); - if (expandBecauseOfFalsing) { + if (expandBecauseOfFalsing && vel == 0) { animator.setDuration(350); } } else { -- cgit v1.1