Merge "Fixing issue with missing scroll bar after fast-scrolling and searching." into ub-launcher3-burnaby

This commit is contained in:
Winson Chung authored and Android (Google) Code Review committed 2015-08-27 19:36:07 +00:00
commit 0fd3e545a7
1 file changed
+4
@@ -102,6 +102,10 @@ public class AllAppsRecyclerView extends BaseRecyclerView
* Scrolls this recycler view to the top.
*/
public void scrollToTop() {
// Ensure we reattach the scrollbar if it was previously detached while fast-scrolling
if (mScrollbar.isThumbDetached()) {
mScrollbar.reattachThumbToScroll();
}
scrollToPosition(0);
}