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

Commit 7dfe2e90 authored by Jason Hsu's avatar Jason Hsu Committed by Android (Google) Code Review
Browse files

Merge "Hearing aids shortcut can not lead to expected page on tablet device" into udc-dev

parents a7259ae1 d369c091
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1881,7 +1881,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
    private void launchAccessibilitySubSettings(int displayId, ComponentName name) {
    private void launchAccessibilitySubSettings(int displayId, ComponentName name) {
        final Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_DETAILS_SETTINGS);
        final Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_DETAILS_SETTINGS);
        final Bundle bundle = ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle();
        final Bundle bundle = ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle();
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
        intent.putExtra(Intent.EXTRA_COMPONENT_NAME, name.flattenToString());
        intent.putExtra(Intent.EXTRA_COMPONENT_NAME, name.flattenToString());
        try {
        try {
            mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));
            mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));