Revert "Provide AllApps item OnLongClickListener through ActivityContext."

This reverts commit 0acab2532d.

Reason for revert: b/290403189

Change-Id: Ie3f67f78a8ffce8c2d5a92f65a7e74d788c82a81
This commit is contained in:
David Saff
2023-07-11 10:45:33 +00:00
committed by Android (Google) Code Review
parent 0acab2532d
commit 853a5b9e0c
11 changed files with 74 additions and 26 deletions

View File

@@ -892,6 +892,15 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
container.put(R.id.work_tab_state_id, state);
}
/**
* Sets the long click listener for icons
*/
public void setOnIconLongClickListener(OnLongClickListener listener) {
for (AdapterHolder holder : mAH) {
holder.mAdapter.setOnIconLongClickListener(listener);
}
}
public AllAppsStore getAppsStore() {
return mAllAppsStore;
}