Merge "Add callback onProfileAudioStateChanged()" into pi-dev
This commit is contained in:
@@ -166,6 +166,10 @@ public abstract class BluetoothDeviceUpdater implements BluetoothCallback {
|
|||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onProfileAudioStateChanged(int bluetoothProfile, int state) {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the context to generate the {@link Preference}, so it could get the correct theme.
|
* Set the context to generate the {@link Preference}, so it could get the correct theme.
|
||||||
*/
|
*/
|
||||||
|
@@ -80,6 +80,10 @@ public final class BluetoothSummaryUpdater extends SummaryUpdater implements Blu
|
|||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onProfileAudioStateChanged(int bluetoothProfile, int state) {
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void register(boolean listening) {
|
public void register(boolean listening) {
|
||||||
if (mBluetoothAdapter == null) {
|
if (mBluetoothAdapter == null) {
|
||||||
|
@@ -275,6 +275,9 @@ public abstract class DeviceListPreferenceFragment extends
|
|||||||
@Override
|
@Override
|
||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { }
|
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onProfileAudioStateChanged(int bluetoothProfile, int state) { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the key of the {@link PreferenceGroup} that contains the bluetooth devices
|
* Return the key of the {@link PreferenceGroup} that contains the bluetooth devices
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user