am d3c60afe
: Include the usb data mode regardless of data role
* commit 'd3c60afe5267eb614b9c0a99b797e6bbb51de16f': Include the usb data mode regardless of data role
This commit is contained in:
@@ -71,8 +71,7 @@ public class UsbBackend {
|
|||||||
if (mPort != null) {
|
if (mPort != null) {
|
||||||
int power = mPortStatus.getCurrentPowerRole() == UsbPort.POWER_ROLE_SOURCE
|
int power = mPortStatus.getCurrentPowerRole() == UsbPort.POWER_ROLE_SOURCE
|
||||||
? MODE_POWER_SOURCE : MODE_POWER_SINK;
|
? MODE_POWER_SOURCE : MODE_POWER_SINK;
|
||||||
return power | (mPortStatus.getCurrentDataRole() == UsbPort.DATA_ROLE_DEVICE
|
return power | getUsbDataMode();
|
||||||
? getUsbDataMode() : MODE_DATA_NONE);
|
|
||||||
}
|
}
|
||||||
return MODE_POWER_SINK | getUsbDataMode();
|
return MODE_POWER_SINK | getUsbDataMode();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user