Merge "Remove toggle "Turn on phone calls & SMS" from User Details of Main user" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
d7a6a7f1ce
@@ -376,7 +376,9 @@ public class UserDetailsSettings extends SettingsPreferenceFragment
|
||||
if (!Utils.isVoiceCapable(context)) { // no telephony
|
||||
removePreference(KEY_ENABLE_TELEPHONY);
|
||||
}
|
||||
|
||||
if (mUserInfo.isMain()) {
|
||||
removePreference(KEY_ENABLE_TELEPHONY);
|
||||
}
|
||||
if (mUserInfo.isRestricted()) {
|
||||
removePreference(KEY_ENABLE_TELEPHONY);
|
||||
if (isNewUser) {
|
||||
|
Reference in New Issue
Block a user