Update to reflect new priorities for A2DP profile.
1. PRIORITY_OFF is when it is unchecked. 2. PRIORITY_ON is when it is checked. 3. PRIORITY_AUTO_CONNECT is when we want to auto connect. When the box is checked, we want to auto connect, so set the priority to AUTO_CONNECT. When the user disconnects, we set the priority back to PRIORITY_ON.
This commit is contained in:
@@ -203,7 +203,7 @@ public abstract class LocalBluetoothProfileManager {
|
|||||||
@Override
|
@Override
|
||||||
public void setPreferred(BluetoothDevice device, boolean preferred) {
|
public void setPreferred(BluetoothDevice device, boolean preferred) {
|
||||||
mService.setSinkPriority(device,
|
mService.setSinkPriority(device,
|
||||||
preferred ? BluetoothA2dp.PRIORITY_AUTO : BluetoothA2dp.PRIORITY_OFF);
|
preferred ? BluetoothA2dp.PRIORITY_AUTO_CONNECT : BluetoothA2dp.PRIORITY_OFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user