Revert "Bluetooth: Move Global settings to CMSettings"
This was added by CAF
Change-Id: Ib80b3946fe66a3a5425be4b7f523810cae734ec8
diff --git a/src/com/android/bluetooth/a2dp/A2dpSinkService.java b/src/com/android/bluetooth/a2dp/A2dpSinkService.java
index 8a5c6f0..8bfe076 100644
--- a/src/com/android/bluetooth/a2dp/A2dpSinkService.java
+++ b/src/com/android/bluetooth/a2dp/A2dpSinkService.java
@@ -24,8 +24,6 @@
import android.util.Log;
import com.android.bluetooth.btservice.ProfileService;
import com.android.bluetooth.Utils;
-import cyanogenmod.providers.CMSettings;
-
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@@ -149,8 +147,8 @@
public boolean setPriority(BluetoothDevice device, int priority) {
enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
"Need BLUETOOTH_ADMIN permission");
- CMSettings.Global.putInt(getContentResolver(),
- CMSettings.Global.getBluetoothA2dpSrcPriorityKey(device.getAddress()),
+ Settings.Global.putInt(getContentResolver(),
+ Settings.Global.getBluetoothA2dpSrcPriorityKey(device.getAddress()),
priority);
Log.d(TAG,"Saved priority " + device + " = " + priority);
return true;
@@ -159,8 +157,8 @@
public int getPriority(BluetoothDevice device) {
enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
"Need BLUETOOTH_ADMIN permission");
- int priority = CMSettings.Global.getInt(getContentResolver(),
- CMSettings.Global.getBluetoothA2dpSrcPriorityKey(device.getAddress()),
+ int priority = Settings.Global.getInt(getContentResolver(),
+ Settings.Global.getBluetoothA2dpSrcPriorityKey(device.getAddress()),
BluetoothProfile.PRIORITY_UNDEFINED);
return priority;
}