[Android] MediaBrowser: ignore case when comparing
Thomas Guillem
git at videolan.org
Fri Feb 12 14:24:27 CET 2016
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 12 14:22:34 2016 +0100| [dfa68206d1c1500053cdfd6c71437855bad0339d] | committer: Thomas Guillem
MediaBrowser: ignore case when comparing
> https://code.videolan.org/videolan/vlc-android/commit/dfa68206d1c1500053cdfd6c71437855bad0339d
---
libvlc/src/org/videolan/libvlc/util/MediaBrowser.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
index 2ddb187..95cf922 100644
--- a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
+++ b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
@@ -267,7 +267,7 @@ public class MediaBrowser {
/* one item can be found by severals discoverers */
boolean found = false;
for (Media media : mDiscovererMediaArray) {
- if (media.getUri().equals(mlEvent.media.getUri())) {
+ if (media.getUri().toString().equalsIgnoreCase(mlEvent.media.getUri().toString())) {
found = true;
break;
}
More information about the Android
mailing list