Use isOemUnlockEnabled to drive oem unlocking toggle.
am: 83f91f61ae
Change-Id: I11d1210beaa26a0bad54e03f7a08817a3c500fe3
This commit is contained in:
@@ -1035,7 +1035,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
|
|
||||||
private void updateOemUnlockOptions() {
|
private void updateOemUnlockOptions() {
|
||||||
if (mEnableOemUnlock != null) {
|
if (mEnableOemUnlock != null) {
|
||||||
updateSwitchPreference(mEnableOemUnlock, isBootloaderUnlocked());
|
updateSwitchPreference(mEnableOemUnlock, Utils.isOemUnlockEnabled(getActivity()));
|
||||||
updateOemUnlockSettingDescription();
|
updateOemUnlockSettingDescription();
|
||||||
// Showing mEnableOemUnlock preference as device has persistent data block.
|
// Showing mEnableOemUnlock preference as device has persistent data block.
|
||||||
mEnableOemUnlock.setDisabledByAdmin(null);
|
mEnableOemUnlock.setDisabledByAdmin(null);
|
||||||
|
Reference in New Issue
Block a user