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:
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user