-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Milestone
Description
There's several places in the app where triggerMediaScan() is called. This happens irrespective of the mimeType which is available in some of these places.
For huge non-media files, this can slow down the system significantly and even crash with OOM errors. Furthermore when writing these files with a DocumentsProvider, maybe the user doesn't want these files get indexed by the media scanner?
Anyway, a simple fix would be to check the mimetype for media files and only trigger a scan for those.
chirayudesai and AndyScherzinger