Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fc8b781 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

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

* commit '76366938':
  Increase the anti-jitter threshold for status bar flings.
parents 04a3e809 76366938
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 -->
+1 −1
Original line number Diff line number Diff line
@@ -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;
                            }