Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd96f79b authored by Vinit Nayak's avatar Vinit Nayak Committed by Automerger Merge Worker
Browse files

Merge "Provide bgExecutor for RotationButtonController" into udc-qpr-dev am:...

Merge "Provide bgExecutor for RotationButtonController" into udc-qpr-dev am: 8ad93932 am: a6f66eeb

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24761312



Change-Id: I3f6610ca6dd3087298e84d24ceb0570d3d2749ee
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 75602b2b a6f66eeb
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -229,20 +229,23 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
        }

        // Construct controllers.
        mControllers = new TaskbarControllers(this,
                new TaskbarDragController(this),
                buttonController,
                isDesktopMode
                        ? new DesktopNavbarButtonsViewController(this, navButtonsView)
                        : new NavbarButtonsViewController(this, navButtonsView),
                new RotationButtonController(this,
        RotationButtonController rotationButtonController = new RotationButtonController(this,
                c.getColor(R.color.floating_rotation_button_light_color),
                c.getColor(R.color.floating_rotation_button_dark_color),
                R.drawable.ic_sysbar_rotate_button_ccw_start_0,
                R.drawable.ic_sysbar_rotate_button_ccw_start_90,
                R.drawable.ic_sysbar_rotate_button_cw_start_0,
                R.drawable.ic_sysbar_rotate_button_cw_start_90,
                        () -> getDisplay().getRotation()),
                () -> getDisplay().getRotation());
        rotationButtonController.setBgExecutor(Executors.THREAD_POOL_EXECUTOR);

        mControllers = new TaskbarControllers(this,
                new TaskbarDragController(this),
                buttonController,
                isDesktopMode
                        ? new DesktopNavbarButtonsViewController(this, navButtonsView)
                        : new NavbarButtonsViewController(this, navButtonsView),
                rotationButtonController,
                new TaskbarDragLayerController(this, mDragLayer),
                new TaskbarViewController(this, taskbarView),
                new TaskbarScrimViewController(this, taskbarScrimView),