Skip to content

Commit

Permalink
Revert "Shade: Fix predicted apps row being empty when opening drawer…
Browse files Browse the repository at this point in the history
… with tabs"

This reverts commit b0283aa.
  • Loading branch information
amirzaidi committed Jun 11, 2020
1 parent 49b45ed commit d9a1b54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private boolean handleMessage(Message msg) {
// Do prediction
List<AppTarget> targetList = new ArrayList<>();
UserHandle user = Process.myUserHandle();
for (ComponentName cn : mUsageTracker.getFilteredComponents()) {
for (ComponentName cn: mUsageTracker.getFilteredComponents()) {
AppTarget target = new AppTarget
.Builder(new AppTargetId("app:" + cn), cn.getPackageName(), user)
.setClassName(cn.getClassName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import com.android.launcher3.LauncherSettings;
import com.android.launcher3.R;
import com.android.launcher3.WorkspaceItemInfo;
import com.android.launcher3.allapps.AllAppsContainerView;
import com.android.launcher3.allapps.AllAppsStore;
import com.android.launcher3.allapps.FloatingHeaderRow;
import com.android.launcher3.allapps.FloatingHeaderView;
Expand Down Expand Up @@ -281,9 +280,6 @@ private void applyPredictionApps() {
updateVisibility();
}
mParent.onHeightUpdated();

// This fixes the problem where the header is invisible when using tabs.
((AllAppsContainerView) mParent.getParent()).setupHeader();
}

private List<ItemInfoWithIcon> processPredictedAppComponents(List<ComponentKeyMapper> components) {
Expand Down

0 comments on commit d9a1b54

Please sign in to comment.