Fixing wrong check used for predictions

Change-Id: I990b101c32abe02a14d95bd00c0b63cda95b4066
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index 8154845..7444545 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -614,14 +614,14 @@
     }
 
     public List<AppInfo> 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;
     }