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

This commit is contained in:
Jason Hsu
2023-03-27 11:01:22 +00:00
committed by Android (Google) Code Review

View File

@@ -1881,7 +1881,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
private void launchAccessibilitySubSettings(int displayId, ComponentName name) {
final Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_DETAILS_SETTINGS);
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());
try {
mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));