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

Commit f2686165 authored by Jason Monk's avatar Jason Monk Committed by Android Git Automerger
Browse files

am cde29f77: am 618bc11b: am 72fecf9f: am d3c60afe: Include the usb data mode...

am cde29f77: am 618bc11b: am 72fecf9f: am d3c60afe: Include the usb data mode regardless of data role

* commit 'cde29f77':
  Include the usb data mode regardless of data role
parents cb9d7a96 cde29f77
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -72,8 +72,7 @@ public class UsbBackend {
        if (mPort != null) {
            int power = mPortStatus.getCurrentPowerRole() == UsbPort.POWER_ROLE_SOURCE
                    ? MODE_POWER_SOURCE : MODE_POWER_SINK;
            return power | (mPortStatus.getCurrentDataRole() == UsbPort.DATA_ROLE_DEVICE
                    ? getUsbDataMode() : MODE_DATA_NONE);
            return power | getUsbDataMode();
        }
        return MODE_POWER_SINK | getUsbDataMode();
    }