Loading packages/SystemUI/src/com/android/systemui/classifier/brightline/DistanceClassifier.java +2 −1 Original line number Diff line number Diff line Loading @@ -112,7 +112,6 @@ class DistanceClassifier extends FalsingClassifier { private DistanceVectors calculateDistances() { // This code assumes that there will be no missed DOWN or UP events. VelocityTracker velocityTracker = VelocityTracker.obtain(); List<MotionEvent> motionEvents = getRecentMotionEvents(); if (motionEvents.size() < 3) { Loading @@ -120,6 +119,8 @@ class DistanceClassifier extends FalsingClassifier { return new DistanceVectors(0, 0, 0, 0); } VelocityTracker velocityTracker = VelocityTracker.obtain(); for (MotionEvent motionEvent : motionEvents) { velocityTracker.addMovement(motionEvent); } Loading Loading
packages/SystemUI/src/com/android/systemui/classifier/brightline/DistanceClassifier.java +2 −1 Original line number Diff line number Diff line Loading @@ -112,7 +112,6 @@ class DistanceClassifier extends FalsingClassifier { private DistanceVectors calculateDistances() { // This code assumes that there will be no missed DOWN or UP events. VelocityTracker velocityTracker = VelocityTracker.obtain(); List<MotionEvent> motionEvents = getRecentMotionEvents(); if (motionEvents.size() < 3) { Loading @@ -120,6 +119,8 @@ class DistanceClassifier extends FalsingClassifier { return new DistanceVectors(0, 0, 0, 0); } VelocityTracker velocityTracker = VelocityTracker.obtain(); for (MotionEvent motionEvent : motionEvents) { velocityTracker.addMovement(motionEvent); } Loading