Don't double scroll listview in Dialer
Instead of consuming the ListView's scroll in onPreNestedScroll,
we were consuming -scroll. This had the affect of making the ListView
move at double its natural speed.
Bug: 16462679
Change-Id: I553f9a7b02a403c93657b0770f77b7a12bf31a40
diff --git a/src/com/android/dialer/widget/ViewDragHelper.java b/src/com/android/dialer/widget/ViewDragHelper.java
index 3d55ad4..91016d1 100644
--- a/src/com/android/dialer/widget/ViewDragHelper.java
+++ b/src/com/android/dialer/widget/ViewDragHelper.java
@@ -1487,8 +1487,8 @@
if (consumed != null) {
final int unconsumedX = targetX - mCapturedView.getLeft();
final int unconsumedY = targetY - mCapturedView.getTop();
- consumed[0] = dx - unconsumedX;
- consumed[1] = dy - unconsumedY;
+ consumed[0] = unconsumedX - dx;
+ consumed[1] = unconsumedY - dy;
}
}