Merge "Fixing crash when changing state while all-apps is not complete bound" into ub-launcher3-master
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index 8f5fcf5..ae41794 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -392,7 +392,8 @@
}
public RecyclerViewFastScroller getScrollBar() {
- return getActiveRecyclerView().getScrollbar();
+ AllAppsRecyclerView rv = getActiveRecyclerView();
+ return rv == null ? null : rv.getScrollbar();
}
public void setupHeader() {