670a72b9301fa53a763344036e4d3ff1995f36df |
|
24-Nov-2014 |
Yigit Boyar <yboyar@google.com> |
Fixed minor bugs in RV's scroll handling. This CL fixes two issues related to how RV handles scrolling. Previously, if layout manager supports scrolling in both directions, RecyclerView would stop flinging if LayoutManager cannot scroll as much as requested in both directions. Now, it continues even if only one of them is fully consumed. This CL also fixes a bug where if fling or smooth scroll is manually called, we would not check if LayoutManager supports scrolling in that axis. This would result in unexpected calls to LayoutManager which may create problems if it is a generic one that supports both orientations (like the default ones). Now, we'll check if LM supports scrolling in that axis in public scroll/fling methods. Bug: 18208220 Change-Id: Ia8e30a3b822b06cf275ae6c2de7e64b8e70e4d59
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/OpReorderTest.java
|