Fix Log.wtf() causing crash; change to warning
Bug: 15898921
Change-Id: Ie0b3bc7969fa849b58b9376db799f24720a7d375
diff --git a/res/values/config.xml b/res/values/config.xml
index 02eadf5..dda59a7 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -145,5 +145,5 @@
<!-- Default connection service setting.
TODO: This is GSM specific. Need to define a generic "use the builtin SIMs" Connection
Service and use it as the default. -->
- <string name="connection_service_default" translatable="false">com.android.phone/com.android.services.telephony.GsmConnectionService</string>
+ <string name="connection_service_default" translatable="false">com.android.phone/com.android.services.telephony.PstnConnectionService</string>
</resources>
diff --git a/src/com/android/phone/CallFeaturesSetting.java b/src/com/android/phone/CallFeaturesSetting.java
index 6c49a3a..a961968 100644
--- a/src/com/android/phone/CallFeaturesSetting.java
+++ b/src/com/android/phone/CallFeaturesSetting.java
@@ -2271,8 +2271,9 @@
// for the ListPreference points to something useful and does not throw an NPE) and proceed.
String connectionServiceDefault = getString(R.string.connection_service_default);
if (!mConnectionServiceLabelByComponentName.containsKey(connectionServiceDefault)) {
- Log.wtf(LOG_TAG, "Package manager reports built-in ConnectionService not installed: "
+ Log.w(LOG_TAG, "Package manager reports built-in ConnectionService not installed: "
+ connectionServiceDefault);
+ } else {
mConnectionServiceLabelByComponentName.put(
connectionServiceDefault,
getString(R.string.connection_service_default_label));