Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NoisyVelocityTracker.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -60,7 +60,7 @@ public class NoisyVelocityTracker implements VelocityTrackerInterface { if (mEventBuf.size() == MAX_EVENTS) { if (mEventBuf.size() == MAX_EVENTS) { mEventBuf.remove(); mEventBuf.remove(); } } mEventBuf.add(new MotionEventCopy(event.getX(), event.getY(), event.getEventTime())); mEventBuf.add(new MotionEventCopy(event.getRawX(), event.getRawY(), event.getEventTime())); } } public void computeCurrentVelocity(int units) { public void computeCurrentVelocity(int units) { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +0 −6 Original line number Original line Diff line number Diff line Loading @@ -227,13 +227,7 @@ public abstract class PanelView extends FrameLayout { } } private void trackMovement(MotionEvent event) { private void trackMovement(MotionEvent event) { // Add movement to velocity tracker using raw screen X and Y coordinates instead // of window coordinates because the window frame may be moving at the same time. float deltaX = event.getRawX() - event.getX(); float deltaY = event.getRawY() - event.getY(); event.offsetLocation(deltaX, deltaY); if (mVelocityTracker != null) mVelocityTracker.addMovement(event); if (mVelocityTracker != null) mVelocityTracker.addMovement(event); event.offsetLocation(-deltaX, -deltaY); } } public void setTouchDisabled(boolean disabled) { public void setTouchDisabled(boolean disabled) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NoisyVelocityTracker.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -60,7 +60,7 @@ public class NoisyVelocityTracker implements VelocityTrackerInterface { if (mEventBuf.size() == MAX_EVENTS) { if (mEventBuf.size() == MAX_EVENTS) { mEventBuf.remove(); mEventBuf.remove(); } } mEventBuf.add(new MotionEventCopy(event.getX(), event.getY(), event.getEventTime())); mEventBuf.add(new MotionEventCopy(event.getRawX(), event.getRawY(), event.getEventTime())); } } public void computeCurrentVelocity(int units) { public void computeCurrentVelocity(int units) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +0 −6 Original line number Original line Diff line number Diff line Loading @@ -227,13 +227,7 @@ public abstract class PanelView extends FrameLayout { } } private void trackMovement(MotionEvent event) { private void trackMovement(MotionEvent event) { // Add movement to velocity tracker using raw screen X and Y coordinates instead // of window coordinates because the window frame may be moving at the same time. float deltaX = event.getRawX() - event.getX(); float deltaY = event.getRawY() - event.getY(); event.offsetLocation(deltaX, deltaY); if (mVelocityTracker != null) mVelocityTracker.addMovement(event); if (mVelocityTracker != null) mVelocityTracker.addMovement(event); event.offsetLocation(-deltaX, -deltaY); } } public void setTouchDisabled(boolean disabled) { public void setTouchDisabled(boolean disabled) { Loading