diff options
| -rw-r--r-- | services/usb/java/com/android/server/usb/MtpNotificationManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/usb/java/com/android/server/usb/MtpNotificationManager.java b/services/usb/java/com/android/server/usb/MtpNotificationManager.java index 101e2008d3e9..5c46222b2feb 100644 --- a/services/usb/java/com/android/server/usb/MtpNotificationManager.java +++ b/services/usb/java/com/android/server/usb/MtpNotificationManager.java @@ -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; } } |