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

Commit b6ad9d92 authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Don't launch ACTION_QUICK_CONTACT activities in a new task."

parents 3d745c03 619ffd70
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -7678,9 +7678,8 @@ public final class ContactsContract {
        public static void showQuickContact(Context context, Rect target, Uri lookupUri, int mode,
                String[] excludeMimes) {
            // Launch pivot dialog through intent for now
            final Intent intent = new Intent(ACTION_QUICK_CONTACT);
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP
                    | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
            final Intent intent = new Intent(ACTION_QUICK_CONTACT)
                    .addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);

            intent.setData(lookupUri);
            intent.setSourceBounds(target);