Skip an interface that does not have MTP interface class.
The comment says it skips the interface that does not have MTP or PTP
interface class, but previously it accepts such interfaces.
BUG=25960704
Change-Id: Idba07d4c6432d73cf45d9a3422af0ad18cd1b280
diff --git a/media/mtp/MtpDevice.cpp b/media/mtp/MtpDevice.cpp
index 01117e6..f8b913a 100644
--- a/media/mtp/MtpDevice.cpp
+++ b/media/mtp/MtpDevice.cpp
@@ -133,6 +133,10 @@
printf("no MTP string\n");
}
}
+#else
+ else {
+ continue;
+ }
#endif
// if we got here, then we have a likely MTP or PTP device