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

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

Merge "ProfileSelectDialog no longer removes caller activity from task." into oc-dr1-dev

parents 47303ec6 9752ce32
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -68,10 +68,8 @@ public class ProfileSelectDialog extends DialogFragment implements OnClickListen
    public void onClick(DialogInterface dialog, int which) {
        UserHandle user = mSelectedTile.userHandle.get(which);
        // Show menu on top level items.
        mSelectedTile.intent.putExtra(SettingsDrawerActivity.EXTRA_SHOW_MENU, true);
        mSelectedTile.intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
        getActivity().startActivityAsUser(mSelectedTile.intent, user);
        ((SettingsDrawerActivity) getActivity()).onProfileTileOpen();
    }

    public static void updateUserHandlesIfNeeded(Context context, Tile tile) {