Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
0211b8df
There was an error fetching the commit references. Please try again later.
Commit
0211b8df
authored
6 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
ML settings: Decode folders mrl
parent
5924da80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
+3
-3
3 additions, 3 deletions
...c/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
with
3 additions
and
3 deletions
vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
+
3
−
3
View file @
0211b8df
...
...
@@ -23,6 +23,7 @@
package
org.videolan.vlc.gui.browser
;
import
android.net.Uri
;
import
android.support.annotation.MainThread
;
import
android.view.View
;
import
android.widget.CheckBox
;
...
...
@@ -57,8 +58,7 @@ class StorageBrowserAdapter extends BaseBrowserAdapter {
if
(
storage
.
getItemType
()
==
MediaLibraryItem
.
TYPE_MEDIA
)
storage
=
new
Storage
(((
MediaWrapper
)
storage
).
getUri
());
String
storagePath
=
((
Storage
)
storage
).
getUri
().
getPath
();
if
(!
storagePath
.
endsWith
(
"/"
))
storagePath
+=
"/"
;
if
(!
storagePath
.
endsWith
(
"/"
))
storagePath
+=
"/"
;
boolean
hasContextMenu
=
mCustomDirsLocation
.
contains
(
storagePath
);
boolean
checked
=
((
StorageBrowserFragment
)
fragment
).
mScannedDirectory
||
mMediaDirsLocation
.
contains
(
storagePath
);
vh
.
binding
.
setItem
(
storage
);
...
...
@@ -93,7 +93,7 @@ class StorageBrowserAdapter extends BaseBrowserAdapter {
final
String
folders
[]
=
VLCApplication
.
getMLInstance
().
getFoldersList
();
mMediaDirsLocation
=
new
ArrayList
<>(
folders
.
length
);
for
(
String
folder
:
folders
)
{
mMediaDirsLocation
.
add
(
folder
.
startsWith
(
"file://"
)
?
folder
.
substring
(
7
)
:
folder
);
mMediaDirsLocation
.
add
(
Uri
.
decode
(
folder
.
startsWith
(
"file://"
)
?
folder
.
substring
(
7
)
:
folder
)
)
;
}
mCustomDirsLocation
=
new
ArrayList
<>(
Arrays
.
asList
(
CustomDirectories
.
getCustomDirectories
()));
}
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
d09ee78b
·
6 years ago
mentioned in commit
d09ee78b
mentioned in commit d09ee78b0234d9d44c1b51935cf4941ea6567c58
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment