From ba819628023041c2c8be61c8ce67e24c05afb07f Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 13 May 2014 17:55:53 +0200 Subject: [PATCH] Adapted the minimum velocity amount needed to perform an overscroll Change-Id: I4dfe36e0eae3647631e21782f2b2ece56260a82a --- .../systemui/statusbar/stack/NotificationStackScrollLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index 109a2d87cca61..fbb6695d31c7a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -758,7 +758,7 @@ public class NotificationStackScrollLayout extends ViewGroup final int range = getScrollRange(); if (y < 0 && oldY >= 0 || y > range && oldY <= range) { float currVelocity = mScroller.getCurrVelocity(); - if (currVelocity >= mMinimumVelocity * 20) { + if (currVelocity >= mMinimumVelocity) { mMaxOverScroll = Math.abs(currVelocity) / 1000 * mOverflingDistance; } }