diff options
| author | Claude <noreply@anthropic.com> | 2026-05-15 23:34:48 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-05-15 23:34:48 +0000 |
| commit | bbfcb667d9510e604676ac92cecc69f9bc39e440 (patch) | |
| tree | f1a3a8d02ffff9f1006852dc98711936a11960d8 /android-app/app/src/androidTest | |
| parent | 79a175ab56e03b4e8031e48c139060a0f434c0ab (diff) | |
fix: recover tracks after reinstall via MediaScanner; add version to startup log
Android clears OWNER_PACKAGE_NAME for all MediaStore entries when an app is
uninstalled. Files survive on disk in Documents/Nav/ but the ownership query
returns 0 rows after reinstall. Fix: if the first load finds nothing, call
MediaScannerConnection.scanFile() on Documents/Nav/. Because our app triggers
the scan, the MediaScanner re-registers each file with our package as owner,
restoring the query results on the immediate retry.
Also log BuildConfig.VERSION_NAME + VERSION_CODE in the startup message so
the build is identifiable directly from the in-app debug log.
https://claude.ai/code/session_01DNjbYxiC1cco83dArNGW3G
Diffstat (limited to 'android-app/app/src/androidTest')
0 files changed, 0 insertions, 0 deletions
