Merge "NullPointerException when running monkey test in IccLockSettings" am: 2c8d826b01
am: 957c4d7720
am: 0ff0487b51
Change-Id: I22cd436533a745a415a49122fe2469ef9a96cdc9
This commit is contained in:
@@ -247,11 +247,15 @@ public class IccLockSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
|
||||
private void updatePreferences() {
|
||||
mPinDialog.setEnabled(mPhone != null);
|
||||
mPinToggle.setEnabled(mPhone != null);
|
||||
if (mPinDialog != null) {
|
||||
mPinDialog.setEnabled(mPhone != null);
|
||||
}
|
||||
if (mPinToggle != null) {
|
||||
mPinToggle.setEnabled(mPhone != null);
|
||||
|
||||
if (mPhone != null) {
|
||||
mPinToggle.setChecked(mPhone.getIccCard().getIccLockEnabled());
|
||||
if (mPhone != null) {
|
||||
mPinToggle.setChecked(mPhone.getIccCard().getIccLockEnabled());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user