Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
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
3e7196da
Commit
3e7196da
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Fix folder path encoding in medialibrary settings
parent
20dcc21f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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/helpers/MedialibraryUtils.java
+4
-3
4 additions, 3 deletions
...d/src/org/videolan/vlc/gui/helpers/MedialibraryUtils.java
with
4 additions
and
3 deletions
vlc-android/src/org/videolan/vlc/gui/helpers/MedialibraryUtils.java
+
4
−
3
View file @
3e7196da
...
...
@@ -2,6 +2,7 @@ package org.videolan.vlc.gui.helpers;
import
android.content.Intent
;
import
android.net.Uri
;
import
org.videolan.vlc.MediaParsingService
;
import
org.videolan.vlc.VLCApplication
;
...
...
@@ -13,14 +14,14 @@ public class MedialibraryUtils {
VLCApplication
.
runBackground
(
new
Runnable
()
{
@Override
public
void
run
()
{
VLCApplication
.
getMLInstance
().
removeFolder
(
path
);
VLCApplication
.
getMLInstance
().
removeFolder
(
Uri
.
decode
(
path
)
)
;
}
});
}
public
static
void
addDir
(
final
String
path
)
{
Intent
intent
=
new
Intent
(
Constants
.
ACTION_DISCOVER
,
null
,
VLCApplication
.
getAppContext
(),
MediaParsingService
.
class
);
intent
.
putExtra
(
Constants
.
EXTRA_PATH
,
path
);
final
Intent
intent
=
new
Intent
(
Constants
.
ACTION_DISCOVER
,
null
,
VLCApplication
.
getAppContext
(),
MediaParsingService
.
class
);
intent
.
putExtra
(
Constants
.
EXTRA_PATH
,
Uri
.
decode
(
path
)
)
;
VLCApplication
.
getAppContext
().
startService
(
intent
);
}
}
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
410531fe
·
7 years ago
mentioned in commit
410531fe
mentioned in commit 410531fe29b8490df4755cce8ae49e524614a215
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