Skip to content
Snippets Groups Projects
Commit 3e7196da authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix folder path encoding in medialibrary settings

parent 20dcc21f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment