OSDN Git Service

[DO NOT MERGE] Revert "[DO NOT MERGE] Use new QueuedWork interface."
authorPhilip P. Moltmann <moltmann@google.com>
Mon, 13 Feb 2017 20:58:46 +0000 (20:58 +0000)
committerPhilip P. Moltmann <moltmann@google.com>
Mon, 13 Feb 2017 23:44:55 +0000 (23:44 +0000)
This reverts commit 81758edffae751c31fb1795febe470c171f7fb1b.

Bug: 30662828
Change-Id: I5c877a3a888f075afcfb9f49ec92cf3ad43f6304

src/com/android/settings/RadioInfo.java
src/com/android/settings/bluetooth/LocalBluetoothPreferences.java

index 2e3b494..65a784a 100644 (file)
@@ -1171,7 +1171,7 @@ public class RadioInfo extends Activity {
 
     void setImsConfigProvisionedState(int configItem, boolean state) {
         if (phone != null && mImsManager != null) {
-            QueuedWork.queue(new Runnable() {
+            QueuedWork.singleThreadExecutor().submit(new Runnable() {
                 public void run() {
                     try {
                         mImsManager.getConfigInterface().setProvisionedValue(
@@ -1181,7 +1181,7 @@ public class RadioInfo extends Activity {
                         Log.e(TAG, "setImsConfigProvisioned() exception:", e);
                     }
                 }
-            }, false);
+            });
         }
     }
 
index 6150920..401b13c 100644 (file)
@@ -150,7 +150,7 @@ final class LocalBluetoothPreferences {
     static void persistDiscoveringTimestamp(final Context context) {
         // Load the shared preferences and edit it on a background
         // thread (but serialized!).
-        QueuedWork.queue(new Runnable() {
+        QueuedWork.singleThreadExecutor().submit(new Runnable() {
                 public void run() {
                     SharedPreferences.Editor editor = getSharedPreferences(context).edit();
                     editor.putLong(
@@ -158,7 +158,7 @@ final class LocalBluetoothPreferences {
                         System.currentTimeMillis());
                     editor.apply();
                 }
-            }, false);
+            });
     }
 
     static boolean hasDockAutoConnectSetting(Context context, String addr) {