Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 388907d1 authored by Ryan Lin's avatar Ryan Lin Committed by Android (Google) Code Review
Browse files

Merge "Add callback onProfileAudioStateChanged()" into pi-dev

parents 3173e9d1 bca6f790
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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.
     */
+4 −0
Original line number Diff line number Diff line
@@ -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) {
+3 −0
Original line number Diff line number Diff line
@@ -275,6 +275,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
     */