improve async gallery code

Gallery is often opened only to view the last captured image. To speed this up,
pass the last captured item from the main activity and load it in parallel with
obtaining the list of previously captured items.

Also:
- interrupt obtaining of this list if activity gets destroyed
- cleanup code that obtains intent extras
- speed up processing of the raw list of previously captured items
7 files changed
tree: bbfdea7a1bcaae131f24433450c85406fa947894
  1. .github/
  2. .idea/
  3. app/
  4. gradle/
  5. .gitignore
  6. build.gradle.kts
  7. gradle.properties
  8. gradlew
  9. gradlew.bat
  10. LICENSE
  11. README.md
  12. settings.gradle.kts
README.md

This is the new GrapheneOS Camera app based on Android's modern CameraX library. It replaces AOSP Camera for GrapheneOS.