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

Refresh ML on device plugged instead of reloading

(cherry picked from commit b4b1c61e)
parent b15c0a4f
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