[DO NOT MERGE] Revert "[DO NOT MERGE] Use new QueuedWork interface."
This reverts commit 81758edffa
.
Bug: 30662828
Change-Id: I5c877a3a888f075afcfb9f49ec92cf3ad43f6304
This commit is contained in:
@@ -1171,7 +1171,7 @@ public class RadioInfo extends Activity {
|
|||||||
|
|
||||||
void setImsConfigProvisionedState(int configItem, boolean state) {
|
void setImsConfigProvisionedState(int configItem, boolean state) {
|
||||||
if (phone != null && mImsManager != null) {
|
if (phone != null && mImsManager != null) {
|
||||||
QueuedWork.queue(new Runnable() {
|
QueuedWork.singleThreadExecutor().submit(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
mImsManager.getConfigInterface().setProvisionedValue(
|
mImsManager.getConfigInterface().setProvisionedValue(
|
||||||
@@ -1181,7 +1181,7 @@ public class RadioInfo extends Activity {
|
|||||||
Log.e(TAG, "setImsConfigProvisioned() exception:", e);
|
Log.e(TAG, "setImsConfigProvisioned() exception:", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, false);
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -150,7 +150,7 @@ final class LocalBluetoothPreferences {
|
|||||||
static void persistDiscoveringTimestamp(final Context context) {
|
static void persistDiscoveringTimestamp(final Context context) {
|
||||||
// Load the shared preferences and edit it on a background
|
// Load the shared preferences and edit it on a background
|
||||||
// thread (but serialized!).
|
// thread (but serialized!).
|
||||||
QueuedWork.queue(new Runnable() {
|
QueuedWork.singleThreadExecutor().submit(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
SharedPreferences.Editor editor = getSharedPreferences(context).edit();
|
SharedPreferences.Editor editor = getSharedPreferences(context).edit();
|
||||||
editor.putLong(
|
editor.putLong(
|
||||||
@@ -158,7 +158,7 @@ final class LocalBluetoothPreferences {
|
|||||||
System.currentTimeMillis());
|
System.currentTimeMillis());
|
||||||
editor.apply();
|
editor.apply();
|
||||||
}
|
}
|
||||||
}, false);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean hasDockAutoConnectSetting(Context context, String addr) {
|
static boolean hasDockAutoConnectSetting(Context context, String addr) {
|
||||||
|
Reference in New Issue
Block a user