Merge "Disabled app icon Visuals" into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-06 18:58:15 +00:00
committed by Android (Google) Code Review
8 changed files with 47 additions and 12 deletions

View File

@@ -277,6 +277,10 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
}
}
public LayoutInflater getLayoutInflater() {
return LayoutInflater.from(getContext());
}
/**
* Resets the state of AllApps.
*/
@@ -444,7 +448,7 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
int index = indexOfChild(oldView);
removeView(oldView);
int layout = showTabs ? R.layout.all_apps_tabs : R.layout.all_apps_rv_layout;
View newView = LayoutInflater.from(getContext()).inflate(layout, this, false);
View newView = getLayoutInflater().inflate(layout, this, false);
addView(newView, index);
if (showTabs) {
mViewPager = (AllAppsPagedView) newView;
@@ -617,7 +621,7 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
AdapterHolder(boolean isWork) {
mIsWork = isWork;
appsList = new AlphabeticalAppsList(mLauncher, mAllAppsStore, isWork);
adapter = new AllAppsGridAdapter(mLauncher, appsList);
adapter = new AllAppsGridAdapter(mLauncher, getLayoutInflater(), appsList);
appsList.setAdapter(adapter);
layoutManager = adapter.getLayoutManager();
}