diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index a8fed7d1edb..a4ced353d21 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -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);