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

Commit a16818f1 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:...

Merge "If cannot add restricted profile, don't suggest it" into qt-dev am: a5018be4 am: 6a3f2bfe
am: 426d0a70

Change-Id: Iea411d1ba73f422870fbb76feb5423d75ffdb1ee
parents 904f0770 426d0a70
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(