Checklist
Affected version
dev / 0.28..0
Steps to reproduce the bug
- Download many videos (> 200)
- Close app completely
- Open app, navigate to Download screen
Expected behavior
- Database query is done on separate thread, UI does not lag
- Checking whether file exists is performed after the list is shown (items are removed after already being displayed)
Actual behavior
- Database query is done on main / UI thread
- Every file is checked individually, also on UI thread
Additional information
DownloadManager → loadFinishedMissions() is called upon init, which performs database queries and file system operations synchronously.
Note that > 200 checks whether files exist can also take multiple seconds.
Please also take a look at valuable comment from #9672 there is a attached logcat in it
Checklist
Affected version
dev / 0.28..0
Steps to reproduce the bug
Expected behavior
Actual behavior
Additional information
DownloadManager→loadFinishedMissions()is called upon init, which performs database queries and file system operations synchronously.Note that > 200 checks whether files exist can also take multiple seconds.
Please also take a look at valuable comment from #9672 there is a attached logcat in it