Cleanup raw usage of AllAppsStore.

Test: Compiles
Bug: 287523421
Flag: No
Change-Id: I35cdb1b281f251b74305129b583f29cdb29e15a6
This commit is contained in:
Brian Isganitis
2023-07-06 22:25:18 +00:00
parent 19c22c20b2
commit e9eacb38fa
5 changed files with 11 additions and 9 deletions

View File

@@ -139,7 +139,7 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
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<T> mAllAppsStore;
private final RecyclerView.OnScrollListener mScrollListener =
new RecyclerView.OnScrollListener() {
@Override
@@ -192,7 +192,7 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
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<T extends Context & ActivityContext>
container.put(R.id.work_tab_state_id, state);
}
public AllAppsStore getAppsStore() {
public AllAppsStore<T> getAppsStore() {
return mAllAppsStore;
}