Merge "Initialize mRotationTouchHelper before onInputDeviceAdded" into main

This commit is contained in:
Tracy Zhou authored and Android (Google) Code Review committed 2024-06-12 00:56:38 +00:00
commit 80dbe9ae3e
1 file changed
+1 -1
@@ -579,6 +579,7 @@ public class TouchInteractionService extends Service {
mMainChoreographer = Choreographer.getInstance();
mAM = ActivityManagerWrapper.getInstance();
mDeviceState = new RecentsAnimationDeviceState(this, true);
mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
mAllAppsActionManager = new AllAppsActionManager(
this, UI_HELPER_EXECUTOR, this::createAllAppsPendingIntent);
mInputManager = getSystemService(InputManager.class);
@@ -591,7 +592,6 @@ public class TouchInteractionService extends Service {
}
}
mTaskbarManager = new TaskbarManager(this, mAllAppsActionManager, mNavCallbacks);
mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
mInputConsumer = InputConsumerController.getRecentsAnimationInputConsumer();
// Call runOnUserUnlocked() before any other callbacks to ensure everything is initialized.