mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Fixing wrong check used for predictions
Change-Id: I990b101c32abe02a14d95bd00c0b63cda95b4066
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user