summaryrefslogtreecommitdiffstats
path: root/src/com/android/bluetooth/a2dp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-10-01 12:49:31 -0700
committerJeff Sharkey <jsharkey@android.com>2012-10-01 12:49:40 -0700
commitc7ead6d5827f3832b9210e92fab7597142059852 (patch)
tree2e162a449482d385b3deb612f4580d273cfe52c1 /src/com/android/bluetooth/a2dp
parent0e46362107a23fcfe829b270f3ff987d911cd102 (diff)
downloadandroid_packages_apps_Bluetooth-c7ead6d5827f3832b9210e92fab7597142059852.tar.gz
android_packages_apps_Bluetooth-c7ead6d5827f3832b9210e92fab7597142059852.tar.bz2
android_packages_apps_Bluetooth-c7ead6d5827f3832b9210e92fab7597142059852.zip
Move bluetooth priorities from Secure to Global.
Bug: 7231171 Change-Id: I39e3611dcec1104558704ed72855fef85f33c084
Diffstat (limited to 'src/com/android/bluetooth/a2dp')
-rwxr-xr-xsrc/com/android/bluetooth/a2dp/A2dpService.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/bluetooth/a2dp/A2dpService.java b/src/com/android/bluetooth/a2dp/A2dpService.java
index 64818ce2b..26503b606 100755
--- a/src/com/android/bluetooth/a2dp/A2dpService.java
+++ b/src/com/android/bluetooth/a2dp/A2dpService.java
@@ -139,8 +139,8 @@ public class A2dpService extends ProfileService {
public boolean setPriority(BluetoothDevice device, int priority) {
enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
"Need BLUETOOTH_ADMIN permission");
- Settings.Secure.putInt(getContentResolver(),
- Settings.Secure.getBluetoothA2dpSinkPriorityKey(device.getAddress()),
+ Settings.Global.putInt(getContentResolver(),
+ Settings.Global.getBluetoothA2dpSinkPriorityKey(device.getAddress()),
priority);
if (DBG) Log.d(TAG,"Saved priority " + device + " = " + priority);
return true;
@@ -149,8 +149,8 @@ public class A2dpService extends ProfileService {
public int getPriority(BluetoothDevice device) {
enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
"Need BLUETOOTH_ADMIN permission");
- int priority = Settings.Secure.getInt(getContentResolver(),
- Settings.Secure.getBluetoothA2dpSinkPriorityKey(device.getAddress()),
+ int priority = Settings.Global.getInt(getContentResolver(),
+ Settings.Global.getBluetoothA2dpSinkPriorityKey(device.getAddress()),
BluetoothProfile.PRIORITY_UNDEFINED);
return priority;
}