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

Commit a877bd48 authored by William Escande's avatar William Escande
Browse files

Remove intdef usage that block bluetooth apex

Test: pre-submit
Change-Id: I932cea4b02bbc8e43d5d373ba2a3305322032104
Bug: 217736913
parent b681fec0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
    }

    @Implementation
    protected boolean removeActiveDevice(@BluetoothAdapter.ActiveDeviceUse int profiles) {
    protected boolean removeActiveDevice(int profiles) {
        if (profiles != ACTIVE_DEVICE_AUDIO && profiles != ACTIVE_DEVICE_PHONE_CALL
                && profiles != ACTIVE_DEVICE_ALL) {
            return false;
@@ -78,8 +78,7 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
    }

    @Implementation
    protected boolean setActiveDevice(BluetoothDevice device,
            @BluetoothAdapter.ActiveDeviceUse int profiles) {
    protected boolean setActiveDevice(BluetoothDevice device, int profiles) {
        if (device == null) {
            return false;
        }