Use new QueuedWork interface.
Test: Ran SharedPreferences CTS tests Bug: 33385963 Change-Id: I8025a087b43462324d0d45555094cbb54a671404
This commit is contained in:
@@ -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.singleThreadExecutor().submit(new Runnable() {
|
||||
QueuedWork.queue(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) {
|
||||
|
Reference in New Issue
Block a user