Merge "Avoid launching activity-based feature to force stop exist actiivty and recreate it." into rvc-dev am: 45910eec3f
am: c8e6f9a025
Change-Id: I39fed89038b2ed4dc1309da8c3f6c6fc70c46f1e
This commit is contained in:
@@ -148,7 +148,7 @@ public class LaunchAccessibilityActivityPreferenceFragment extends
|
||||
final Bundle bundle = ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle();
|
||||
|
||||
intent.setComponent(name);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
try {
|
||||
final int userId = UserHandle.myUserId();
|
||||
getPrefContext().startActivityAsUser(intent, bundle, UserHandle.of(userId));
|
||||
|
Reference in New Issue
Block a user