summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/res/xml
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-05-26 20:35:38 +0000
committerClaude <noreply@anthropic.com>2026-05-26 20:35:38 +0000
commit0db33911ca4841c658b22912d3ecf32477e5e827 (patch)
tree0005290ad49551f1182eef94d63f5486a9ac1569 /android-app/app/src/main/res/xml
parent3f3e6ed586e580539ce42289a3f97536fe994c7b (diff)
Persist logbook JSON and photos in SAF so they survive reinstall
- LogbookStorage: reads/writes nav_logbook.json and photos into the SAF logbook/ subfolder, using the same saf_tree_uri pref as TrackStorage. Automatically migrates legacy getExternalFilesDir JSON on first SAF write. Falls back to external files when SAF is not yet configured. - LogbookRepository: expose cameraDir (cache-backed temp for FileProvider), copyPhoto(Uri), and importPhoto(File) instead of the old photoDir. - VoiceLogFragment / TrackDetailSheet: camera writes temp to cacheDir then imports to SAF after capture; gallery delegates to copyPhoto(); photo display and decodeThumbnail handle both content:// URIs and file paths. - file_paths.xml: add cache-path entry so FileProvider can serve camera temp files from cacheDir/nav_camera/. https://claude.ai/code/session_01KXYBuAHZkvv63DeUG6XaZD
Diffstat (limited to 'android-app/app/src/main/res/xml')
-rw-r--r--android-app/app/src/main/res/xml/file_paths.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/android-app/app/src/main/res/xml/file_paths.xml b/android-app/app/src/main/res/xml/file_paths.xml
index c8f824e..b60abc8 100644
--- a/android-app/app/src/main/res/xml/file_paths.xml
+++ b/android-app/app/src/main/res/xml/file_paths.xml
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-files-path name="nav_photos" path="Pictures/Nav/" />
+ <cache-path name="nav_camera" path="nav_camera/" />
</paths>