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

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

Merge "Revert^2 "Remove temp user creation activity"" into tm-dev

parents bbcc123f a4b0e6ae
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -584,13 +584,6 @@ public class UserSwitcherController implements Dumpable {
                .setPackage(mCreateSupervisedUserPackage)
                .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

        // TODO(b/209659998): [to-be-removed] fallback activity for supervised user creation.
        if (mContext.getPackageManager().resolveActivity(intent, 0) == null) {
            intent.setPackage(null)
                    .setClassName("com.android.settings",
                        "com.android.settings.users.AddSupervisedUserActivity");
        }

        mContext.startActivity(intent);
    }