Use new setting key to maintain the list of user assigned shortcut targets.
* Framework changes to keep ACCESSIBILITY_BUTTON_TARGET_COMPONENT contains only a single target, use ACCESSIBILITY_BUTTON_TARGETS to maintain the targets list. Bug: 151295675 Test: manual test Change-Id: I2218402fd122acc9a86c64127e9cfcf77a6e241e
This commit is contained in:
@@ -120,7 +120,7 @@ public final class MagnificationPreferenceFragment extends DashboardFragment {
|
||||
final AccessibilityManager am = (AccessibilityManager) context.getSystemService(
|
||||
Context.ACCESSIBILITY_SERVICE);
|
||||
final String assignedId = Settings.Secure.getString(context.getContentResolver(),
|
||||
Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT);
|
||||
Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS);
|
||||
if (!TextUtils.isEmpty(assignedId) && !MAGNIFICATION_COMPONENT_ID.equals(assignedId)) {
|
||||
final ComponentName assignedComponentName = ComponentName.unflattenFromString(
|
||||
assignedId);
|
||||
|
Reference in New Issue
Block a user