summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/Prefs.java
diff options
context:
space:
mode:
authorjasonwshsu <jasonwshsu@google.com>2021-05-05 01:22:51 +0800
committerjasonwshsu <jasonwshsu@google.com>2021-06-03 21:41:27 +0800
commitd2f7022ad153dafac494cc60c48e0df8a899d180 (patch)
tree643aca13e2c1afca88b1f281b89077e5e1b13c7d /packages/SystemUI/src/com/android/systemui/Prefs.java
parentf142b5a368edaf8393d093393708b62fa4d87f94 (diff)
Maintain the position of accessibility floating menu
* Use percentage of X-aixs and Y-axis as last position, so it could be restored at approximately position when device screen size changed. * Fine-tune AccessibilityFloatingMenuViewTest Bug: 183342667 Test: atest AccessibilityFloatingMenuViewTest PositionTest Change-Id: I58ed608a03bc20f15a9d0852c95907107516c9ba
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Prefs.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/Prefs.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java
index bf09975bb034..782cd29b0179 100644
--- a/packages/SystemUI/src/com/android/systemui/Prefs.java
+++ b/packages/SystemUI/src/com/android/systemui/Prefs.java
@@ -74,7 +74,8 @@ public final class Prefs {
Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP,
Key.HAS_SEEN_REVERSE_BOTTOM_SHEET,
Key.CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT,
- Key.HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP
+ Key.HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP,
+ Key.ACCESSIBILITY_FLOATING_MENU_POSITION
})
// TODO: annotate these with their types so {@link PrefsCommandLine} can know how to set them
public @interface Key {
@@ -125,6 +126,7 @@ public final class Prefs {
String CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT = "ControlsStructureSwipeTooltipCount";
String HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP =
"HasSeenAccessibilityFloatingMenuDockTooltip";
+ String ACCESSIBILITY_FLOATING_MENU_POSITION = "AccessibilityFloatingMenuPosition";
}
public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) {