From a239d7b867679106aec1a8f0c52fbd358d25e891 Mon Sep 17 00:00:00 2001 From: Brian Attwell Date: Tue, 16 Sep 2014 15:53:35 -0700 Subject: 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 --- src/com/android/dialer/widget/ViewDragHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/dialer/widget/ViewDragHelper.java b/src/com/android/dialer/widget/ViewDragHelper.java index 3d55ad47c..91016d15b 100644 --- a/src/com/android/dialer/widget/ViewDragHelper.java +++ b/src/com/android/dialer/widget/ViewDragHelper.java @@ -1487,8 +1487,8 @@ public class ViewDragHelper { 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; } } -- cgit v1.2.3