Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
0bf07d9a
Commit
0bf07d9a
authored
Apr 04, 2012
by
Sébastien Toque
Browse files
fix audio cover and URItoFile
parent
3fcb24b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/AudioService.java
View file @
0bf07d9a
...
...
@@ -344,7 +344,7 @@ public class AudioService extends Service {
if
(
b
!=
null
)
return
b
;
}
File
f
=
new
File
(
mCurrentMedia
.
getLocation
());
File
f
=
Util
.
URIto
File
(
mCurrentMedia
.
getLocation
());
for
(
File
s
:
f
.
getParentFile
().
listFiles
())
{
if
(
s
.
getAbsolutePath
().
endsWith
(
"png"
)
||
s
.
getAbsolutePath
().
endsWith
(
"jpg"
))
...
...
vlc-android/src/org/videolan/vlc/Util.java
View file @
0bf07d9a
...
...
@@ -26,6 +26,7 @@ import java.text.DecimalFormat;
import
android.content.Context
;
import
android.graphics.Bitmap
;
import
android.net.Uri
;
import
android.widget.Toast
;
public
class
Util
{
...
...
@@ -41,7 +42,7 @@ public class Util {
}
public
static
File
URItoFile
(
String
URI
)
{
return
new
File
(
URI
.
replace
(
"file://"
,
"file:
"
));
return
new
File
(
Uri
.
decode
(
URI
)
.
replace
(
"file://"
,
"
"
));
}
public
static
String
PathToURI
(
String
path
)
{
...
...
Write
Preview
Supports
Markdown
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