diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-05-05 21:07:29 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-05-05 21:07:29 -1000 |
| commit | 32e510f90442988884a78ff1ec473ebf66facf76 (patch) | |
| tree | 0de7d58ef68e6fa6df9d24fedbd24b34be21fedf /.git_old/objects/26 | |
| parent | 68b58d45c54fcb9e4861491f19137f065c4035b9 (diff) | |
fix: guard past-track load against SecurityException before permissions granted
MediaStore.query() throws SecurityException if storage permission hasn't
been granted yet. The ViewModel init{} fires before the permission dialog
result, so the coroutine crashed the app on first launch.
- Wrap contentResolver.query() in runCatching in loadViaMediaStore()
- Wrap getPastTracks() call in init{} with runCatching; log failure,
don't crash
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to '.git_old/objects/26')
0 files changed, 0 insertions, 0 deletions
