Merge "Avoid launching activity-based feature to force stop exist actiivty and recreate it." into rvc-dev am: 9933478ea0
Change-Id: I98c195017d22c6043b9f6ec401ebd08792a69625
This commit is contained in:
@@ -1212,7 +1212,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
|
|||||||
final Intent intent = new Intent();
|
final Intent intent = new Intent();
|
||||||
final Bundle bundle = ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle();
|
final Bundle bundle = ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle();
|
||||||
intent.setComponent(name);
|
intent.setComponent(name);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
try {
|
try {
|
||||||
mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));
|
mContext.startActivityAsUser(intent, bundle, UserHandle.of(mCurrentUserId));
|
||||||
} catch (ActivityNotFoundException ignore) {
|
} catch (ActivityNotFoundException ignore) {
|
||||||
|
|||||||
Reference in New Issue
Block a user