diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index fcda19542c..7591ab91ed 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2977,7 +2977,7 @@ public class Launcher extends StatefulActivity Map packageUserKeytoUidMap) { Preconditions.assertUIThread(); boolean hadWorkApps = mAppsView.shouldShowTabs(); - AllAppsStore appsStore = mAppsView.getAppsStore(); + AllAppsStore appsStore = mAppsView.getAppsStore(); appsStore.setApps(apps, flags, packageUserKeytoUidMap); PopupContainerWithArrow.dismissInvalidPopup(this); if (hadWorkApps != mAppsView.shouldShowTabs()) { diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index da1bcd7fcc..9b7a05f4fa 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -139,7 +139,7 @@ public class ActivityAllAppsContainerView private final SearchTransitionController mSearchTransitionController; private final Paint mHeaderPaint = new Paint(Paint.ANTI_ALIAS_FLAG); private final Rect mInsets = new Rect(); - private final AllAppsStore mAllAppsStore; + private final AllAppsStore mAllAppsStore; private final RecyclerView.OnScrollListener mScrollListener = new RecyclerView.OnScrollListener() { @Override @@ -192,7 +192,7 @@ public class ActivityAllAppsContainerView public ActivityAllAppsContainerView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mActivityContext = ActivityContext.lookupContext(context); - mAllAppsStore = new AllAppsStore(mActivityContext); + mAllAppsStore = new AllAppsStore<>(mActivityContext); mScrimColor = Themes.getAttrColor(context, R.attr.allAppsScrimColor); mHeaderThreshold = getResources().getDimensionPixelSize( @@ -892,7 +892,7 @@ public class ActivityAllAppsContainerView container.put(R.id.work_tab_state_id, state); } - public AllAppsStore getAppsStore() { + public AllAppsStore getAppsStore() { return mAllAppsStore; } diff --git a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java index 29767bf465..0657178ad5 100644 --- a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java +++ b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java @@ -69,7 +69,7 @@ public class AlphabeticalAppsList implement // The set of apps from the system private final List mApps = new ArrayList<>(); @Nullable - private final AllAppsStore mAllAppsStore; + private final AllAppsStore mAllAppsStore; // The number of results in current adapter private int mAccessibilityResultsCount = 0; @@ -86,7 +86,7 @@ public class AlphabeticalAppsList implement private int mNumAppRowsInAdapter; private Predicate mItemFilter; - public AlphabeticalAppsList(Context context, @Nullable AllAppsStore appsStore, + public AlphabeticalAppsList(Context context, @Nullable AllAppsStore appsStore, WorkProfileManager workProfileManager) { mAllAppsStore = appsStore; mActivityContext = ActivityContext.lookupContext(context); diff --git a/src/com/android/launcher3/secondarydisplay/PinnedAppsAdapter.java b/src/com/android/launcher3/secondarydisplay/PinnedAppsAdapter.java index f03c62ac5c..2d69bfad20 100644 --- a/src/com/android/launcher3/secondarydisplay/PinnedAppsAdapter.java +++ b/src/com/android/launcher3/secondarydisplay/PinnedAppsAdapter.java @@ -60,13 +60,15 @@ public class PinnedAppsAdapter extends BaseAdapter implements OnSharedPreference private final OnClickListener mOnClickListener; private final OnLongClickListener mOnLongClickListener; private final SharedPreferences mPrefs; - private final AllAppsStore mAllAppsList; + private final AllAppsStore mAllAppsList; private final AppInfoComparator mAppNameComparator; private final Set mPinnedApps = new HashSet<>(); private final ArrayList mItems = new ArrayList<>(); - public PinnedAppsAdapter(SecondaryDisplayLauncher launcher, AllAppsStore allAppsStore, + public PinnedAppsAdapter( + SecondaryDisplayLauncher launcher, + AllAppsStore allAppsStore, OnLongClickListener onLongClickListener) { mLauncher = launcher; mOnClickListener = launcher.getItemOnClickListener(); diff --git a/src/com/android/launcher3/secondarydisplay/SecondaryDisplayLauncher.java b/src/com/android/launcher3/secondarydisplay/SecondaryDisplayLauncher.java index e4f6fe1b75..a10c0ad842 100644 --- a/src/com/android/launcher3/secondarydisplay/SecondaryDisplayLauncher.java +++ b/src/com/android/launcher3/secondarydisplay/SecondaryDisplayLauncher.java @@ -302,7 +302,7 @@ public class SecondaryDisplayLauncher extends BaseDraggingActivity public void bindAllApplications(AppInfo[] apps, int flags, Map packageUserKeytoUidMap) { Preconditions.assertUIThread(); - AllAppsStore appsStore = mAppsView.getAppsStore(); + AllAppsStore appsStore = mAppsView.getAppsStore(); appsStore.setApps(apps, flags, packageUserKeytoUidMap); PopupContainerWithArrow.dismissInvalidPopup(this); }