Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
0711b73d
Commit
0711b73d
authored
Oct 02, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a crash in URItoFileName and behave like the method name says
parent
cba5031e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
vlc-android/src/org/videolan/vlc/Util.java
vlc-android/src/org/videolan/vlc/Util.java
+1
-4
No files found.
vlc-android/src/org/videolan/vlc/Util.java
View file @
0711b73d
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment