summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Philip P. Moltmann <moltmann@google.com> 2016-06-02 00:28:50 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-06-02 00:28:52 +0000
commit80354c4dfeae62fc120977d4fbdb8818f505b253 (patch)
treea0dc2a163af6e612327b9324ebf7a1ae7021eeb1
parentbd2b9e0d53a211d0a5093b8bf24ac32e1a72ffea (diff)
parent236b9e8eb4ad14068ef42ee2f4f89460f36ed37d (diff)
Merge "Handle the uncommon case that a name is null" into nyc-dev
-rw-r--r--services/usb/java/com/android/server/usb/MtpNotificationManager.java2
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;
}
}