Call ImsConfig.setProvisionedValue() in new thread
Pavel Zhamaitsiak [Thu, 31 Mar 2016 01:54:55 +0000 (18:54 -0700)]
Bug: 27816215
Change-Id: I2af44c0b9f3db7ba586bbeb549ed1455b4af86a4

src/java/com/android/ims/ImsManager.java

index ba81d54..1f94cfd 100644 (file)
@@ -434,7 +434,7 @@ public class ImsManager {
                 SubscriptionManager.getDefaultVoicePhoneId());
         if (imsManager != null) {
             final int value = wfcMode;
-            QueuedWork.singleThreadExecutor().submit(new Runnable() {
+            Thread thread = new Thread(new Runnable() {
                 public void run() {
                     try {
                         imsManager.getConfigInterface().setProvisionedValue(
@@ -445,6 +445,7 @@ public class ImsManager {
                     }
                 }
             });
+            thread.start();
         }
     }
 
@@ -479,7 +480,7 @@ public class ImsManager {
             final int value = enabled
                     ? ImsConfig.FeatureValueConstants.ON
                     : ImsConfig.FeatureValueConstants.OFF;
-            QueuedWork.singleThreadExecutor().submit(new Runnable() {
+            Thread thread = new Thread(new Runnable() {
                 public void run() {
                     try {
                         imsManager.getConfigInterface().setProvisionedValue(
@@ -490,6 +491,7 @@ public class ImsManager {
                     }
                 }
             });
+            thread.start();
         }
     }