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

* commit '0fd3e545a709902e67dd42440e351a22a6daa48c':
  Fixing issue with missing scroll bar after fast-scrolling and searching.
This commit is contained in:
Winson Chung
2015-08-27 19:39:49 +00:00
committed by Android Git Automerger
@@ -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);
}