Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da1e4b31 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing wrong check used for predictions

Change-Id: I990b101c32abe02a14d95bd00c0b63cda95b4066
parent 03be2ec7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -614,14 +614,14 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
    }

    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;
    }