Skip to content

Commit 7636693

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Increase the anti-jitter threshold for status bar flings." into jb-mr1-dev
2 parents 4b576e3 + db9a376 commit 7636693

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/SystemUI/res/values/dimens.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@
103103
<!-- Initial velocity of the shade when collapsing on its own -->
104104
<dimen name="self_collapse_velocity">2000dp</dimen>
105105
<!-- Minimum final velocity of gestures interpreted as expand requests -->
106-
<dimen name="fling_expand_min_velocity">200dp</dimen>
106+
<dimen name="fling_expand_min_velocity">100dp</dimen>
107107
<!-- Minimum final velocity of gestures interpreted as collapse requests -->
108-
<dimen name="fling_collapse_min_velocity">200dp</dimen>
108+
<dimen name="fling_collapse_min_velocity">100dp</dimen>
109109
<!-- Cap on contribution of x dimension of gesture to overall velocity -->
110110
<dimen name="fling_gesture_max_x_velocity">200dp</dimen>
111111
<!-- Cap on overall resulting fling speed (s^-1) -->
112112
<dimen name="fling_gesture_max_output_velocity">3000dp</dimen>
113113

114114
<!-- Minimum distance a fling must travel (anti-jitter) -->
115-
<dimen name="fling_gesture_min_dist">10dp</dimen>
115+
<dimen name="fling_gesture_min_dist">20dp</dimen>
116116

117117
<!-- Minimum fraction of the display a gesture must travel, at any velocity, to qualify as a
118118
collapse request -->

packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public boolean onTouch(View v, MotionEvent event) {
267267
// preventing spurious flings due to touch screen jitter
268268
final float deltaY = Math.abs(mFinalTouchY - mInitialTouchY);
269269
if (deltaY < mFlingGestureMinDistPx
270-
|| vel < mFlingGestureMinDistPx) {
270+
|| vel < mFlingExpandMinVelocityPx) {
271271
vel = 0;
272272
}
273273

0 commit comments

Comments
 (0)