Merge "don\'t toggle OEM unlocking if the preference is not enabled" into nyc-dev am: 950de0e
am: 130721a
* commit '130721a419d4c99ee06c7d44e450ff8167834736':
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