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

Commit 39def730 authored by Winson Chung's avatar Winson Chung
Browse files

Fix issue with floating rotation button being in the wrong corner (launcher)

- Add option for the rotation button to be positioned to the right
  when in ROTATION_0

Bug: 265197526
Test: atest FloatingRotationButtonPositionCalculatorTest
Test: foldable-folded (floating rot button in sysui, natural rot=rot_0)
      foldable-unfolded (floating rot button in launcher, natural rot=rot_0)
      tablet (floating rot in launcher, natural rot=rot_270)
Change-Id: I856a0be2e10fceb34254cd58ceb58dfa8a1819bd
parent 5809508f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -299,7 +299,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
                    R.dimen.floating_rotation_button_taskbar_left_margin,
                    R.dimen.floating_rotation_button_taskbar_bottom_margin,
                    R.dimen.floating_rotation_button_diameter,
                    R.dimen.key_button_ripple_max_width);
                    R.dimen.key_button_ripple_max_width,
                    R.bool.floating_rotation_button_position_left);
            mControllers.rotationButtonController.setRotationButton(mFloatingRotationButton,
                    mRotationButtonListener);

+3 −0
Original line number Diff line number Diff line
@@ -203,4 +203,7 @@
    <!-- The max scale for the wallpaper when it's zoomed in -->
    <item name="config_wallpaperMaxScale" format="float" type="dimen">0</item>

    <!-- Whether the floating rotation button should be on the left/right in the device's natural
         orientation -->
    <bool name="floating_rotation_button_position_left">true</bool>
</resources>