Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c856e032 authored by Peter_Liang's avatar Peter_Liang
Browse files

Fix intent extra into showAccessibilityTargetsSelection function.

  AccessibilityButtonChooserActivity can't get the
  extra value to display the corresponding dialog.

Test: manual test
Change-Id: I551416ba206170ca3f21a7ac9537592440c31444
parent f11c17e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1147,8 +1147,8 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
            @ShortcutType int shortcutType) {
        Intent intent = new Intent(AccessibilityManager.ACTION_CHOOSE_ACCESSIBILITY_BUTTON);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
        intent.putExtra(AccessibilityManager.EXTRA_SHORTCUT_TYPE, shortcutType);
        final Bundle bundle = ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle();
        bundle.putInt(AccessibilityManager.EXTRA_SHORTCUT_TYPE, shortcutType);
        mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));
    }