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

Commit 8ffb7f90 authored by Peter Liang's avatar Peter Liang Committed by PETER LIANG
Browse files

Change the default position of the accessibility floating menu.

Goal:
Avoid overlapping on the primary button of some 1P applications when first turning on the shortcut as possible, it's a workaround though.

Bug: 251084688
Test: manual test
Change-Id: I4d925022845baec5ca86e0357331d7d3725138f2
parent f9b8309c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public class AccessibilityFloatingMenu implements IAccessibilityFloatingMenu {
    @FloatRange(from = 0.0, to = 1.0)
    private static final float DEFAULT_POSITION_X_PERCENT = 1.0f;
    @FloatRange(from = 0.0, to = 1.0)
    private static final float DEFAULT_POSITION_Y_PERCENT = 0.9f;
    private static final float DEFAULT_POSITION_Y_PERCENT = 0.77f;

    private final Context mContext;
    private final AccessibilityFloatingMenuView mMenuView;
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ class MenuInfoRepository {
    private static final float DEFAULT_MENU_POSITION_X_PERCENT = 1.0f;

    @FloatRange(from = 0.0, to = 1.0)
    private static final float DEFAULT_MENU_POSITION_Y_PERCENT = 0.9f;
    private static final float DEFAULT_MENU_POSITION_Y_PERCENT = 0.77f;

    private final Context mContext;
    private final Handler mHandler = new Handler(Looper.getMainLooper());