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

Refresh ML on device plugged instead of reloading

parent 900be8b7
No related branches found
No related tags found
No related merge requests found
......@@ -175,8 +175,7 @@ public class ExternalMonitor extends BroadcastReceiver {
if (VLCApplication.getMLInstance().addDevice(uuid, path, true)) {
notifyStorageChanges(path);
} else
appCtx.startService(new Intent(MediaParsingService.ACTION_RELOAD, null, appCtx, MediaParsingService.class)
.putExtra(EXTRA_PATH, path));
LocalBroadcastManager.getInstance(appCtx).sendBroadcast(new Intent(MediaParsingService.ACTION_SERVICE_ENDED));
}
break;
case ACTION_MEDIA_UNMOUNTED:
......
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