Fix incorrect PreferenceScreen key for SIP account settings
The key to the SIP accounts settings category is incorrect which causes
a crash when we try to remove it. This happens if SIP calls are not
supported by the phone.
Bug: 17887879
Change-Id: I8dafd6f22056e0819fa5bd23e4511bf1139191fd
diff --git a/src/com/android/phone/settings/PhoneAccountSettingsFragment.java b/src/com/android/phone/settings/PhoneAccountSettingsFragment.java
index 2a14f0b..97430b0 100644
--- a/src/com/android/phone/settings/PhoneAccountSettingsFragment.java
+++ b/src/com/android/phone/settings/PhoneAccountSettingsFragment.java
@@ -37,7 +37,8 @@
private static final String SELECT_CALL_ASSISTANT_PREF_KEY =
"wifi_calling_call_assistant_preference";
- private static final String SIP_SETTINGS_CATEGORY_PREF_KEY = "phone_accounts_sip_settings_key";
+ private static final String SIP_SETTINGS_CATEGORY_PREF_KEY =
+ "phone_accounts_sip_settings_category_key";
private static final String USE_SIP_PREF_KEY = "use_sip_calling_options_key";
private static final String SIP_RECEIVE_CALLS_PREF_KEY = "sip_receive_calls_key";