Merge "Do not call startService"
diff --git a/src/com/android/providers/telephony/TelephonyProvider.java b/src/com/android/providers/telephony/TelephonyProvider.java
index 597d880..2403582 100644
--- a/src/com/android/providers/telephony/TelephonyProvider.java
+++ b/src/com/android/providers/telephony/TelephonyProvider.java
@@ -1558,10 +1558,7 @@
r.getString(R.string.apn_source_service)));
log("binding to service to restore apns, intent=" + intent);
try {
- // When the api is available, instead of startService we should use:
- // context.startForegroundService(intent);
- context.startService(intent);
- if (context.bindService(intent, connection, Context.BIND_IMPORTANT)) {
+ if (context.bindService(intent, connection, Context.BIND_AUTO_CREATE)) {
synchronized (mLock) {
while (mIApnSourceService == null) {
try {