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

Commit 5cf3dcd1 authored by xiyuan.wang's avatar xiyuan.wang Committed by android-build-merger
Browse files

Merge "Fix app crash while adding new user"

am: 1e5cd4c3

Change-Id: I0cb1c3a228b85edb6303d4f6c33037e4f787f550
parents 35a3260b 1e5cd4c3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -450,6 +450,10 @@ public class UserSettings extends SettingsPreferenceFragment
    private void onUserCreated(int userId) {
        mAddedUserId = userId;
        mAddingUser = false;
        if (!isResumed()) {
            Log.w(TAG, "Cannot show dialog after onPause");
            return;
        }
        if (mUserManager.getUserInfo(userId).isRestricted()) {
            showDialog(DIALOG_SETUP_PROFILE);
        } else {