diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 8154845691..7444545085 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -614,14 +614,14 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource, } public List getPredictedApps() { - if (mUsingTabs) { + if (isHeaderVisible()) { return mHeader.getPredictionRow().getPredictedApps(); } else { return mAH[AdapterHolder.MAIN].appsList.getPredictedApps(); } } - private boolean isHeaderVisible() { + public boolean isHeaderVisible() { return mHeader != null && mHeader.getVisibility() == View.VISIBLE; }