am 76366938: Merge "Increase the anti-jitter threshold for status bar flings." into jb-mr1-dev

* commit '76366938242282e37863e1fd8b7fa16e7fd554c1':
  Increase the anti-jitter threshold for status bar flings.
This commit is contained in:
Daniel Sandler
2012-10-03 12:31:31 -07:00
committed by Android Git Automerger
2 changed files with 4 additions and 4 deletions

View File

@@ -103,16 +103,16 @@
<!-- Initial velocity of the shade when collapsing on its own -->
<dimen name="self_collapse_velocity">2000dp</dimen>
<!-- Minimum final velocity of gestures interpreted as expand requests -->
<dimen name="fling_expand_min_velocity">200dp</dimen>
<dimen name="fling_expand_min_velocity">100dp</dimen>
<!-- Minimum final velocity of gestures interpreted as collapse requests -->
<dimen name="fling_collapse_min_velocity">200dp</dimen>
<dimen name="fling_collapse_min_velocity">100dp</dimen>
<!-- Cap on contribution of x dimension of gesture to overall velocity -->
<dimen name="fling_gesture_max_x_velocity">200dp</dimen>
<!-- Cap on overall resulting fling speed (s^-1) -->
<dimen name="fling_gesture_max_output_velocity">3000dp</dimen>
<!-- Minimum distance a fling must travel (anti-jitter) -->
<dimen name="fling_gesture_min_dist">10dp</dimen>
<dimen name="fling_gesture_min_dist">20dp</dimen>
<!-- Minimum fraction of the display a gesture must travel, at any velocity, to qualify as a
collapse request -->

View File

@@ -267,7 +267,7 @@ public class PanelView extends FrameLayout {
// preventing spurious flings due to touch screen jitter
final float deltaY = Math.abs(mFinalTouchY - mInitialTouchY);
if (deltaY < mFlingGestureMinDistPx
|| vel < mFlingGestureMinDistPx) {
|| vel < mFlingExpandMinVelocityPx) {
vel = 0;
}