uber / motif

A simple DI API for Android / Java
Apache License 2.0
534 stars 43 forks source link

Fix samples app not loading any data due to SD card request permission issues. #235

Closed TonyTangAndroid closed 2 years ago

TonyTangAndroid commented 2 years ago

Description: Currently, whenever you open the motif sample app, it shows an empty screen. This is because the sample app did not handle the SD card read permission tasks. This pull request will fix the issue by leveraging the ActivityResultContracts to initialize the permission request process and automatically load the photos whenever the permission is granted. This way, the sample app will run seamlessly with intuitive functions.

No motif library code changes.