Merge "NullPointerException when running monkey test in IccLockSettings"
This commit is contained in:
@@ -247,13 +247,17 @@ public class IccLockSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
|
||||
private void updatePreferences() {
|
||||
if (mPinDialog != null) {
|
||||
mPinDialog.setEnabled(mPhone != null);
|
||||
}
|
||||
if (mPinToggle != null) {
|
||||
mPinToggle.setEnabled(mPhone != null);
|
||||
|
||||
if (mPhone != null) {
|
||||
mPinToggle.setChecked(mPhone.getIccCard().getIccLockEnabled());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
|
Reference in New Issue
Block a user