Use isOemUnlockEnabled to drive oem unlocking toggle. am: 83f91f61ae

am: 2fd3f18e27

Change-Id: Ied30f294df99b869e06ee4dc11c300da3fd70ade
This commit is contained in:
Fan Zhang
2016-08-24 02:33:38 +00:00
committed by android-build-merger

View File

@@ -1035,7 +1035,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
private void updateOemUnlockOptions() {
if (mEnableOemUnlock != null) {
updateSwitchPreference(mEnableOemUnlock, isBootloaderUnlocked());
updateSwitchPreference(mEnableOemUnlock, Utils.isOemUnlockEnabled(getActivity()));
updateOemUnlockSettingDescription();
// Showing mEnableOemUnlock preference as device has persistent data block.
mEnableOemUnlock.setDisabledByAdmin(null);