From b92663afb12985edaa32d542ab85aac8d636b730 Mon Sep 17 00:00:00 2001 From: "Philip P. Moltmann" Date: Mon, 13 Feb 2017 20:58:46 +0000 Subject: [PATCH] [DO NOT MERGE] Revert "[DO NOT MERGE] Use new QueuedWork interface." This reverts commit 81758edffae751c31fb1795febe470c171f7fb1b. Bug: 30662828 Change-Id: I5c877a3a888f075afcfb9f49ec92cf3ad43f6304 --- src/com/android/settings/RadioInfo.java | 4 ++-- src/com/android/settings/bluetooth/LocalBluetoothPreferences.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/android/settings/RadioInfo.java b/src/com/android/settings/RadioInfo.java index 2e3b4941c5..65a784ac0d 100644 --- a/src/com/android/settings/RadioInfo.java +++ b/src/com/android/settings/RadioInfo.java @@ -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); + }); } } diff --git a/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java b/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java index 6150920a83..401b13c5ad 100644 --- a/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java +++ b/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java @@ -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) { -- 2.11.0