Merge "Avoid launching activity-based feature to force stop exist actiivty and recreate it." into rvc-dev am: 9933478ea0 am: 19afd28875

Change-Id: I9f5d5c745c121c2b217e70a981f744c05016a8bd
This commit is contained in:
TreeHugger Robot
2020-05-18 23:21:53 +00:00
committed by Automerger Merge Worker

View File

@@ -1212,7 +1212,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
final Intent intent = new Intent();
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 {
mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));
} catch (ActivityNotFoundException ignore) {