mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Refactor all apps to depend on activity context.
The current AllAppsContainerView has been split into a base class and a subclass for activities. The base class allows using all apps with an activity context. A-Z and work profile tabs are supported, but search and the hotseat still require an Activity. Test: Manual. All apps should work the same. Bug: 204696617 Change-Id: I3b146714bc11b3b3555d97623aab5d78ac836482
This commit is contained in:
@@ -75,7 +75,7 @@ public class AllAppsTransitionController
|
||||
}
|
||||
};
|
||||
|
||||
private AllAppsContainerView mAppsView;
|
||||
private ActivityAllAppsContainerView<Launcher> mAppsView;
|
||||
|
||||
private final Launcher mLauncher;
|
||||
private boolean mIsVerticalLayout;
|
||||
@@ -201,7 +201,7 @@ public class AllAppsTransitionController
|
||||
/**
|
||||
* see Launcher#setupViews
|
||||
*/
|
||||
public void setupViews(ScrimView scrimView, AllAppsContainerView appsView) {
|
||||
public void setupViews(ScrimView scrimView, ActivityAllAppsContainerView<Launcher> appsView) {
|
||||
mScrimView = scrimView;
|
||||
mAppsView = appsView;
|
||||
if (FeatureFlags.ENABLE_DEVICE_SEARCH.get() && Utilities.ATLEAST_R) {
|
||||
|
||||
Reference in New Issue
Block a user