Skip to content
Snippets Groups Projects
Commit f38ffd99 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Avoid relaunching scan on resume when alreday started

Fixes #2271


(cherry picked from commit 6203663d)
parent 41d40d35
No related branches found
No related tags found
1 merge request!1508Fix the video information legend attribute and crash
......@@ -127,7 +127,7 @@ class MainActivity : ContentActivity(),
super.onStart()
if (mediaLibrary.isInitiated) {
/* Load media items from database and storage */
if (scanNeeded && Permissions.canReadStorage(this)) this.reloadLibrary()
if (scanNeeded && Permissions.canReadStorage(this) && !mediaLibrary.isWorking) this.reloadLibrary()
}
}
......
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