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

This commit is contained in:
Daichi Hirono
2016-03-22 08:55:58 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}
}