Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d872a513 authored by Alexey Polyudov's avatar Alexey Polyudov Committed by android-build-merger
Browse files

resolve merge conflicts of 81758edf to nyc-mr2-dev-plus-aosp

am: 5d409ace

Change-Id: I90f8afee357fa453e337b657976a1619383a58a5
parents 00537955 5d409ace
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -148,6 +148,20 @@ final class LocalBluetoothPreferences {
        editor.apply();
    }

    static void persistDiscoveringTimestamp(final Context context) {
        // Load the shared preferences and edit it on a background
        // thread (but serialized!).
        QueuedWork.queue(new Runnable() {
                public void run() {
                    SharedPreferences.Editor editor = getSharedPreferences(context).edit();
                    editor.putLong(
                            KEY_DISCOVERING_TIMESTAMP,
                        System.currentTimeMillis());
                    editor.apply();
                }
            }, false);
    }

    static boolean hasDockAutoConnectSetting(Context context, String addr) {
        return getSharedPreferences(context).contains(KEY_DOCK_AUTO_CONNECT + addr);
    }