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

Commit f4160302 authored by Daichi Hirono's avatar Daichi Hirono Committed by Android (Google) Code Review
Browse files

Merge "Fix null pointer exception when MTP/PTP device is detached." into nyc-dev

parents d36ba73f e80b147c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -294,7 +294,7 @@ class MtpManager {
            if (usbInterface.getInterfaceClass() == UsbConstants.USB_SUBCLASS_VENDOR_SPEC &&
                    usbInterface.getInterfaceSubclass() == SUBCLASS_MTP &&
                    usbInterface.getInterfaceProtocol() == PROTOCOL_MTP &&
                    usbInterface.getName().equals("MTP")) {
                    "MTP".equals(usbInterface.getName())) {
                return true;
            }
        }