Add callback onProfileAudioStateChanged()

Bug: 74134939
Test: Build
Change-Id: I2a7e837703b66e1798679c65afab7dc6572c295e
This commit is contained in:
ryanywlin
2018-03-30 10:25:30 +08:00
committed by Hugh Chen
parent e06a4abb5c
commit bca6f79026
3 changed files with 11 additions and 0 deletions

View File

@@ -166,6 +166,10 @@ public abstract class BluetoothDeviceUpdater implements BluetoothCallback {
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.
*/

View File

@@ -80,6 +80,10 @@ public final class BluetoothSummaryUpdater extends SummaryUpdater implements Blu
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
}
@Override
public void onProfileAudioStateChanged(int bluetoothProfile, int state) {
}
@Override
public void register(boolean listening) {
if (mBluetoothAdapter == null) {

View File

@@ -280,6 +280,9 @@ public abstract class DeviceListPreferenceFragment extends
@Override
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
*/