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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user