Merge "Remove intdef usage that block bluetooth apex" am: b72b351d21 am: f81fe1cfb7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1988587 Change-Id: I654611d62cc38517165923724c098b5e6ec7f941
This commit is contained in:
commit
336c9135df
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user