Moving RecentsWindowManager away from the singleton pattern
Test: Built and tested locally Flag: com.android.launcher3.enable_fallback_overview_in_window Bug:292269949 Change-Id: Ic70d9a3e65ffb86e369f52982891b94bef4cacd7
This commit is contained in:
1 parent
c50aa8bf31
commit
7ed1868d60
13 files changed
+66
-44
No files matched your search
@@ -673,8 +673,8 @@ public class TouchInteractionService extends Service {
|
||||
mDesktopVisibilityController = new DesktopVisibilityController(this);
|
||||
mTaskbarManager = new TaskbarManager(
|
||||
this, mAllAppsActionManager, mNavCallbacks, mDesktopVisibilityController);
|
||||
if (Flags.enableFallbackOverviewInWindow()) {
|
||||
mRecentsWindowManager = RecentsWindowManager.Companion.getOrCreateInstance(this);
|
||||
if(Flags.enableFallbackOverviewInWindow()) {
|
||||
mRecentsWindowManager = new RecentsWindowManager(this);
|
||||
}
|
||||
mInputConsumer = InputConsumerController.getRecentsAnimationInputConsumer();
|
||||
|
||||
@@ -827,6 +827,10 @@ public class TouchInteractionService extends Service {
|
||||
mTrackpadsConnected.clear();
|
||||
|
||||
mTaskbarManager.destroy();
|
||||
|
||||
if (mRecentsWindowManager != null) {
|
||||
mRecentsWindowManager.destroy();
|
||||
}
|
||||
mDesktopVisibilityController.onDestroy();
|
||||
sConnected = false;
|
||||
|
||||
@@ -1701,6 +1705,6 @@ public class TouchInteractionService extends Service {
|
||||
GestureState gestureState, long touchTimeMs) {
|
||||
return new RecentsWindowSwipeHandler(this, mDeviceState, mTaskAnimationManager,
|
||||
gestureState, touchTimeMs, mTaskAnimationManager.isRecentsAnimationRunning(),
|
||||
mInputConsumer);
|
||||
mInputConsumer, mRecentsWindowManager);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user