[Android] Use ReplaceFirst where applicable

Jean-Baptiste Kempf git at videolan.org
Wed May 27 14:29:03 CEST 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 27 13:43:32 2015 +0200| [db76475a641042cc88f6e9b9dec349fa9cf2c592] | committer: Jean-Baptiste Kempf

Use ReplaceFirst where applicable

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=db76475a641042cc88f6e9b9dec349fa9cf2c592
---

 libvlc/src/org/videolan/libvlc/LibVlcUtil.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvlc/src/org/videolan/libvlc/LibVlcUtil.java b/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
index bc14da8..270b1d7 100644
--- a/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
+++ b/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
@@ -88,7 +88,7 @@ public class LibVlcUtil {
 
     public static File URItoFile(String URI) {
         if (URI == null) return null;
-        return new File(Uri.decode(URI).replace("file://", ""));
+        return new File(Uri.decode(URI).replaceFirst("file://", ""));
     }
 
     public static boolean hasCompatibleCPU(Context context) {



More information about the Android mailing list