Commit 0711b73d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix a crash in URItoFileName and behave like the method name says

parent cba5031e
......@@ -72,10 +72,7 @@ public class Util {
}
public static String URItoFileName(String URI) {
int sep = URI.lastIndexOf('/');
int dot = URI.lastIndexOf('.');
String name = dot >= 0 ? URI.substring(sep + 1, dot) : URI;
return Uri.decode(name);
return URItoFile(URI).getName();
}
public static String PathToURI(String path) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment