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

Command reload on cold start

parent 5dc4924a
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
public void run() {
boolean shouldInit = !(new File(MediaParsingService.this.getCacheDir()+Medialibrary.VLC_MEDIA_DB_NAME).exists());
mMedialibrary.setup();
if (mMedialibrary.init(MediaParsingService.this)) {
if (mMedialibrary.init(VLCApplication.getAppContext())) {
List<String> devices = new ArrayList<>();
devices.add(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY);
devices.addAll(AndroidDevices.getExternalStorageDirectories());
......@@ -221,6 +221,8 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
mMedialibrary.discover(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY);
} else if (upgrade)
mMedialibrary.forceParserRetry();
else
reload(null);
}
}
});
......
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