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

Commit 6c3d66e3 authored by PETER LIANG's avatar PETER LIANG Committed by Android (Google) Code Review
Browse files

Merge "Fix intent extra into showAccessibilityTargetsSelection function."

parents 8085c4a0 c856e032
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1147,8 +1147,8 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
            @ShortcutType int shortcutType) {
            @ShortcutType int shortcutType) {
        Intent intent = new Intent(AccessibilityManager.ACTION_CHOOSE_ACCESSIBILITY_BUTTON);
        Intent intent = new Intent(AccessibilityManager.ACTION_CHOOSE_ACCESSIBILITY_BUTTON);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
        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();
        final Bundle bundle = ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle();
        bundle.putInt(AccessibilityManager.EXTRA_SHORTCUT_TYPE, shortcutType);
        mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));
        mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));
    }
    }