Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45910eec authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Avoid launching activity-based feature to force stop exist actiivty and...

Merge "Avoid launching activity-based feature to force stop exist actiivty and recreate it." into rvc-dev
parents 4bbe564a efabdcc7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));