Shelter/app
Peter Cai 584bd25aeb FileShuttleService: trigger media scanner after writes as well
Previously, we have been triggering the media scanner after calls to
`createFile()`. This is not robust, though, as in many cases the writer is
not able to finish writing (i.e. *actually* creating the file) before
the scanner is scheduled, resulting in media copied into the work
profile not showing up in galleries etc.

Turns out, ParcelFileDescriptor supports a `listener` argument in its
`open()` calls. This listener is triggered when the fd is actually
closed by the (potentially remote) writer. To have robust media
scanning, we simply re-trigger the scanner every time a writable
ParcelFileDescriptor is closed.
2023-11-04 18:24:10 -04:00
..
src FileShuttleService: trigger media scanner after writes as well 2023-11-04 18:24:10 -04:00
.gitignore initial commit 2018-08-19 20:50:30 +08:00
build.gradle gradle: Set versionCode of debug builds to current timestamp 2023-11-04 18:14:12 -04:00
proguard-rules.pro initial commit 2018-08-19 20:50:30 +08:00