diff options
Diffstat (limited to 'src/com/android/settings/bluetooth/LocalBluetoothPreferences.java')
-rw-r--r-- | src/com/android/settings/bluetooth/LocalBluetoothPreferences.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java b/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java index f862f72..f00b801 100644 --- a/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java +++ b/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java @@ -17,10 +17,8 @@ package com.android.settings.bluetooth; import android.app.QueuedWork; -import android.bluetooth.BluetoothAdapter; import android.content.Context; import android.content.SharedPreferences; -import android.content.SharedPreferences.Editor; import android.content.res.Configuration; import android.util.Log; @@ -48,10 +46,6 @@ final class LocalBluetoothPreferences { private static final String KEY_DISCOVERABLE_END_TIMESTAMP = "discoverable_end_timestamp"; - private static final String KEY_ADVERTISEMENT_PREFERENCE = "bt_advertisement_perference"; - - private static final boolean DEFAULT_ADVERTISING_ENABLED = false; - private LocalBluetoothPreferences() { } @@ -64,17 +58,6 @@ final class LocalBluetoothPreferences { KEY_DISCOVERABLE_END_TIMESTAMP, 0); } - static boolean isAdvertisingEnabled(Context context) { - return getSharedPreferences(context).getBoolean( - KEY_ADVERTISEMENT_PREFERENCE, DEFAULT_ADVERTISING_ENABLED); - } - - static void setAdvertisingEnabled(Context context, boolean advertisingEnabled) { - Editor preferenceEditor = getSharedPreferences(context).edit(); - preferenceEditor.putBoolean(KEY_ADVERTISEMENT_PREFERENCE, advertisingEnabled); - preferenceEditor.apply(); - } - static boolean shouldShowDialogInForeground(Context context, String deviceAddress) { LocalBluetoothManager manager = LocalBluetoothManager.getInstance(context); |