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

Commit 27ef0764 authored by William Escande's avatar William Escande Committed by Automerger Merge Worker
Browse files

Merge "Remove intdef usage that block bluetooth apex" am: b72b351d am: f81fe1cf am: 336c9135

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1988587

Change-Id: Ica9859fbc2b33cca15035438018de1c2edeab843
parents 13b502ad 336c9135
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -69,7 +69,7 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
    }
    }


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


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