Fix null pointer exception when MTP/PTP device is detached.
FIXED=27743872 Change-Id: I9b754ba7efbc4958a47aafe332f1909bc0d50457
This commit is contained in:
@@ -291,7 +291,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