Skip to content

Commit aa0c803

Browse files
mikeNGMocaRafee
authored andcommitted
fixup! Hide scrollbar when searching All Apps
Change-Id: I0e0694c7dc328257de013ee45569b1d834bb8bdb
1 parent 1345edc commit aa0c803

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -529,13 +529,6 @@ protected void rebindAdapters(boolean force) {
529529
mAllAppsStore.registerIconContainer(mAH.get(AdapterHolder.SEARCH).mRecyclerView);
530530
}
531531

532-
protected void setScrollbarVisibility(boolean visible) {
533-
final RecyclerViewFastScroller scrollbar = getScrollBar();
534-
if (scrollbar != null) {
535-
scrollbar.setVisibility(visible ? VISIBLE : GONE);
536-
}
537-
}
538-
539532
protected View replaceAppsRVContainer(boolean showTabs) {
540533
for (int i = AdapterHolder.MAIN; i <= AdapterHolder.WORK; i++) {
541534
AdapterHolder adapterHolder = mAH.get(i);
@@ -1011,6 +1004,13 @@ protected void dispatchDraw(Canvas canvas) {
10111004
}
10121005
}
10131006

1007+
protected void setScrollbarVisibility(boolean visible) {
1008+
AllAppsRecyclerView rv = getActiveRecyclerView();
1009+
if (rv != null && rv.getScrollbar() != null) {
1010+
rv.getScrollbar().setVisibility(visible ? VISIBLE : GONE);
1011+
}
1012+
}
1013+
10141014
protected void updateSearchResultsVisibility() {
10151015
if (isSearching()) {
10161016
getSearchRecyclerView().setVisibility(VISIBLE);

0 commit comments

Comments
 (0)