Skip to content
Snippets Groups Projects
Commit 40ef97bc authored by Duncan McNamara's avatar Duncan McNamara Committed by Nicolas Pomepuy
Browse files

Scan: Stop scan restart after exiting group

If the user enters a group before the end of a medialibrary scan, the
boolean scanNeeded is set to true in onStop. To stop the scan from
happening when coming back from the group, scanNeeded is set to false in
onActivityResult.

Closes #2255


(cherry picked from commit c2f4c7d0)
parent b9862ef8
No related branches found
No related tags found
1 merge request!1508Fix the video information legend attribute and crash
......@@ -232,6 +232,8 @@ class MainActivity : ContentActivity(),
} else if (requestCode == ACTIVITY_RESULT_SECONDARY) {
if (resultCode == RESULT_RESCAN) {
forceRefresh(currentFragment)
} else {
scanNeeded = false
}
}
}
......
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