Merge "Avoid launching activity-based feature to force stop exist actiivty and recreate it." into rvc-dev am: 45910eec3f am: ceb23bb736 am: d89a58f00f am: 9a26cc3405 am: 5993000b7b

Change-Id: I740f78c3dc440af347f56c5eb18e7b853e905952
This commit is contained in:
TreeHugger Robot
2020-05-16 02:47:28 +00:00
committed by Automerger Merge Worker

View File

@@ -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));