Merge "don't toggle OEM unlocking if the preference is not enabled" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
950de0e40a
@@ -1836,7 +1836,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
(BatteryManager.BATTERY_PLUGGED_AC | BatteryManager.BATTERY_PLUGGED_USB) : 0);
|
(BatteryManager.BATTERY_PLUGGED_AC | BatteryManager.BATTERY_PLUGGED_USB) : 0);
|
||||||
} else if (preference == mBtHciSnoopLog) {
|
} else if (preference == mBtHciSnoopLog) {
|
||||||
writeBtHciSnoopLogOptions();
|
writeBtHciSnoopLogOptions();
|
||||||
} else if (preference == mEnableOemUnlock) {
|
} else if (preference == mEnableOemUnlock && mEnableOemUnlock.isEnabled()) {
|
||||||
if (mEnableOemUnlock.isChecked()) {
|
if (mEnableOemUnlock.isChecked()) {
|
||||||
if (!showKeyguardConfirmation(getResources(), REQUEST_CODE_ENABLE_OEM_UNLOCK)) {
|
if (!showKeyguardConfirmation(getResources(), REQUEST_CODE_ENABLE_OEM_UNLOCK)) {
|
||||||
confirmEnableOemUnlock();
|
confirmEnableOemUnlock();
|
||||||
|
Reference in New Issue
Block a user