Merge "Handle the uncommon case that a name is null" into nyc-dev

This commit is contained in:
Philip P. Moltmann
2016-06-02 00:28:50 +00:00
committed by Android (Google) Code Review

View File

@@ -139,7 +139,7 @@ class MtpNotificationManager {
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;
}
}