Backup settings for Assistant invocation

This backs up two more settings:
 * "Use long press home for Assistant" (if user uses 3-button
   navigation)
 * "Use corner-swipe for Assistant" (if user uses gesture navigation)

Since we changed the defaults for these settings between OS generations,
users have been losing their interaction settings when migrating.

Bug: 242160733
Test: atest SettingsBackupTest
      (Temporarily reenabled secureSettingsBackedUpOrDenied)
Change-Id: If4a0fd112f68aebbc343efc9e0d6ccbbe6b89036
This commit is contained in:
Jernej Virag
2022-08-24 10:18:04 +02:00
parent cb7ea3c9f1
commit 27380cc6ed

View File

@@ -216,5 +216,7 @@ public class SecureSettings {
Settings.Secure.ACCESSIBILITY_SOFTWARE_CURSOR_ENABLED,
Settings.Secure.ACCESSIBILITY_SOFTWARE_CURSOR_TRIGGER_HINTS_ENABLED,
Settings.Secure.ACCESSIBILITY_SOFTWARE_CURSOR_KEYBOARD_SHIFT_ENABLED,
Settings.Secure.ASSIST_TOUCH_GESTURE_ENABLED,
Settings.Secure.ASSIST_LONG_PRESS_HOME_ENABLED,
};
}