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

Commit efdde0fc authored by Michal Belusiak's avatar Michal Belusiak Committed by Gerrit Code Review
Browse files

Merge "BluetoothVolumeControl: Add default implementation to deprecated callback API" into main

parents a7542e03 8793bf69
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ public class VolumeControlProfileTest {
        mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService);

        final Executor executor = (command -> new Thread(command).start());
        final BluetoothVolumeControl.Callback callback = (device, volumeOffset) -> {};
        final BluetoothVolumeControl.Callback callback = new BluetoothVolumeControl.Callback() {};
        mProfile.registerCallback(executor, callback);

        verify(mService).registerCallback(executor, callback);
@@ -200,7 +200,7 @@ public class VolumeControlProfileTest {

    @Test
    public void unregisterCallback_verifyIsCalled() {
        final BluetoothVolumeControl.Callback callback = (device, volumeOffset) -> {};
        final BluetoothVolumeControl.Callback callback = new BluetoothVolumeControl.Callback() {};
        mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService);

        mProfile.unregisterCallback(callback);