[Launcher Jank] Pass single threaded Executor to RotationButtonController so that binder calls are ordered.

Bug: 338036218
Test: presubmit
Flag: NONE
Change-Id: Ic398bf4be53c6b2cc5f4fa11aea5c3b451d5ddf8
This commit is contained in:
Fengjiang Li
2024-04-30 15:16:14 -07:00
parent f22abdb2ec
commit 08af8696ff

View File

@@ -275,7 +275,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
R.drawable.ic_sysbar_rotate_button_cw_start_0,
R.drawable.ic_sysbar_rotate_button_cw_start_90,
() -> getDisplay().getRotation());
rotationButtonController.setBgExecutor(Executors.THREAD_POOL_EXECUTOR);
rotationButtonController.setBgExecutor(Executors.UI_HELPER_EXECUTOR);
mControllers = new TaskbarControllers(this,
new TaskbarDragController(this),