diff options
| author | Claude <noreply@anthropic.com> | 2026-05-25 18:12:11 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-05-25 18:12:11 +0000 |
| commit | 02776054778c3cbc8aefc43376b105becfec2b86 (patch) | |
| tree | 1ab6db199bc09ff4a6c83e51e271124ee08b7960 /android-app/app/src/main/res/xml | |
| parent | 619deab18a0cd56d844c5911a9bbda20d4439269 (diff) | |
Persist log entries and photos; stamp with GPS location
- LogbookStorage: Moshi-backed JSON persistence to getExternalFilesDir,
photos saved to Pictures/Nav/ instead of cache
- LogbookRepository: file-backed replacement for in-memory store, loads
saved entries on init so they survive app restarts
- VoiceLogViewModel: expose entries StateFlow, accept lat/lon in save()
- VoiceLogFragment: switch camera to TakePicture(Uri) via FileProvider for
full-res photos; gallery copies content URI to persistent storage;
passes current GPS position to save(); shows scrollable entries list
- MainViewModel: expose currentPosition StateFlow updated on each GPS fix
- AndroidManifest: add FileProvider for Pictures/Nav/ directory
- TripReportViewModel: updated to use LogbookRepository
https://claude.ai/code/session_01YUbuZNDAoLea4cf9UGQ9qn
Diffstat (limited to 'android-app/app/src/main/res/xml')
| -rw-r--r-- | android-app/app/src/main/res/xml/file_paths.xml | 4 |
1 files changed, 4 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 new file mode 100644 index 0000000..c8f824e --- /dev/null +++ b/android-app/app/src/main/res/xml/file_paths.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<paths> + <external-files-path name="nav_photos" path="Pictures/Nav/" /> +</paths> |
