summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorEugene Susla <eugenesusla@google.com>2017-10-30 12:52:17 -0700
committerEugene Susla <eugenesusla@google.com>2017-10-30 13:48:12 -0700
commit8b2eb6fe54b4f0bb0707099c5b4bf1d69de49c16 (patch)
treee697ce02687a1403254afe10f801419331e451d7 /core/java
parent5a6a5417ec5fe2a9f18577abc6e6906e8377b066 (diff)
Smooth scroll RecyclerView on a11y ACTION_SCROLL_*
This is consistent with the behavior of ListView and ScrollView for that action Bug: 63778054 Test: Go through bug steps and ensute it's fixed Change-Id: I3999ecca5c9f90661c510233e6fc1971506a2187
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/widget/RecyclerView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/com/android/internal/widget/RecyclerView.java b/core/java/com/android/internal/widget/RecyclerView.java
index 7abc76a85af5..408a4e9b02a4 100644
--- a/core/java/com/android/internal/widget/RecyclerView.java
+++ b/core/java/com/android/internal/widget/RecyclerView.java
@@ -9556,7 +9556,7 @@ public class RecyclerView extends ViewGroup implements ScrollingView, NestedScro
if (vScroll == 0 && hScroll == 0) {
return false;
}
- mRecyclerView.scrollBy(hScroll, vScroll);
+ mRecyclerView.smoothScrollBy(hScroll, vScroll);
return true;
}