summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDave Kover <kover@cyngn.com>2016-07-01 16:19:19 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-08-13 13:25:22 -0700
commitf0beb7f8fb89fedbabf29567ddc75d138f4dfda8 (patch)
treee50ae3399a43a7694a53c5bd3e6b48187642b22d /packages
parent59350eaf491df7cac496a38443e9d3fb8b715137 (diff)
downloadframeworks_base-f0beb7f8fb89fedbabf29567ddc75d138f4dfda8.zip
frameworks_base-f0beb7f8fb89fedbabf29567ddc75d138f4dfda8.tar.gz
frameworks_base-f0beb7f8fb89fedbabf29567ddc75d138f4dfda8.tar.bz2
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
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java2
1 files changed, 1 insertions, 1 deletions
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 {