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
This commit is contained in:
Peter Liang
2022-10-26 20:38:52 +08:00
committed by PETER LIANG
parent f9b8309c03
commit 8ffb7f90fe
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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());