Merge "don\'t toggle OEM unlocking if the preference is not enabled" into nyc-dev

am: 950de0e

* commit '950de0e40aa1c21dc69c64980fa4dab2f1c68eb7':
  don't toggle OEM unlocking if the preference is not enabled
This commit is contained in:
Andres Morales
2016-03-22 21:34:00 +00:00
committed by android-build-merger

View File

@@ -1836,7 +1836,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
(BatteryManager.BATTERY_PLUGGED_AC | BatteryManager.BATTERY_PLUGGED_USB) : 0);
} else if (preference == mBtHciSnoopLog) {
writeBtHciSnoopLogOptions();
} else if (preference == mEnableOemUnlock) {
} else if (preference == mEnableOemUnlock && mEnableOemUnlock.isEnabled()) {
if (mEnableOemUnlock.isChecked()) {
if (!showKeyguardConfirmation(getResources(), REQUEST_CODE_ENABLE_OEM_UNLOCK)) {
confirmEnableOemUnlock();