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

Commit 58f69268 authored by Bookatz's avatar Bookatz Committed by android-build-merger
Browse files

Merge "If cannot add restricted profile, don't suggest it" into qt-dev

am: a5018be4

Change-Id: I76b1faf3e21f5b552ef3ad80660dee0786234d15
parents 5ac36909 a5018be4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -271,6 +271,10 @@ public class UserSettings extends SettingsPreferenceFragment
            mMePreference.setSummary(R.string.user_admin);
        }
        mAddUser = (RestrictedPreference) findPreference(KEY_ADD_USER);
        if (!mUserCaps.mCanAddRestrictedProfile) {
            // Label should only mention adding a "user", not a "profile"
            mAddUser.setTitle(R.string.user_add_user_menu);
        }
        mAddUser.setOnPreferenceClickListener(this);

        activity.registerReceiverAsUser(