Fixing crash when changing state while all-apps is not complete bound

Change-Id: I564501244cb1478195e5d226da295c13269ff524
This commit is contained in:
Sunny Goyal
2018-03-21 18:04:48 -07:00
parent 9869f75825
commit 033e614127

View File

@@ -392,7 +392,8 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
}
public RecyclerViewFastScroller getScrollBar() {
return getActiveRecyclerView().getScrollbar();
AllAppsRecyclerView rv = getActiveRecyclerView();
return rv == null ? null : rv.getScrollbar();
}
public void setupHeader() {