Merge "Fix null pointer exception when MTP/PTP device is detached." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f416030277
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user