From 715806c626aeb0f0101f8be5bae0f6179b28e3cb Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 2 Jul 2026 04:52:10 +0000 Subject: fix+feat: track layer cleanup, notification, log redesign, color consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix track events persisting on main map: clear selectedTrack and pop track_detail back stack in hideOverlays() so speed segments and tack circles are removed when navigating to Map via bottom nav - Notification: dual channels (recording=DEFAULT, background=MIN); shows app name + "Recording journey · Xh Ym · X.X nm"; updates live from trackStats collector; invisible when not recording - Log tab: unified reverse-chronological ship's log merging saved tracks + standalone notes (no photo-only rows); form hidden when not recording with "New Note" button → AlertDialog (with camera/gallery); combine() flow keeps list reactive to both tracks and log entries - Sheet border: bottom nav + fragment container now use colorSurfaceContainerHigh matching the instrument card's elevated surface color; card elevation set to 0dp with explicit background to avoid double-tinting Co-Authored-By: Claude Sonnet 4.6 --- .../app/src/main/res/layout/activity_main.xml | 7 +- .../app/src/main/res/layout/dialog_new_note.xml | 80 +++++++++++++++ .../app/src/main/res/layout/fragment_voice_log.xml | 108 ++++++++------------- 3 files changed, 125 insertions(+), 70 deletions(-) create mode 100644 android-app/app/src/main/res/layout/dialog_new_note.xml (limited to 'android-app/app/src/main/res/layout') diff --git a/android-app/app/src/main/res/layout/activity_main.xml b/android-app/app/src/main/res/layout/activity_main.xml index 99aa192..c6e80e0 100644 --- a/android-app/app/src/main/res/layout/activity_main.xml +++ b/android-app/app/src/main/res/layout/activity_main.xml @@ -87,7 +87,7 @@ android:visibility="gone" android:clickable="true" android:focusable="true" - android:background="?attr/colorSurface" /> + android:background="?attr/colorSurfaceContainerHigh" /> @@ -191,7 +192,7 @@ android:id="@+id/bottom_navigation" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/colorSurface" + android:background="?attr/colorSurfaceContainerHigh" app:menu="@menu/bottom_nav_menu" /> diff --git a/android-app/app/src/main/res/layout/dialog_new_note.xml b/android-app/app/src/main/res/layout/dialog_new_note.xml new file mode 100644 index 0000000..a403b8d --- /dev/null +++ b/android-app/app/src/main/res/layout/dialog_new_note.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android-app/app/src/main/res/layout/fragment_voice_log.xml b/android-app/app/src/main/res/layout/fragment_voice_log.xml index cacc6d6..5726154 100644 --- a/android-app/app/src/main/res/layout/fragment_voice_log.xml +++ b/android-app/app/src/main/res/layout/fragment_voice_log.xml @@ -13,19 +13,48 @@ android:orientation="vertical" android:padding="20dp"> - + + android:orientation="horizontal" + android:gravity="center_vertical" + android:layout_marginBottom="8dp"> + + + android:text="New Note" + app:icon="@android:drawable/ic_input_add" + android:visibility="gone" /> + + + + + + + + android:layout_marginBottom="16dp" /> - - - - - - - - - - - - - - - - - + @@ -245,13 +218,14 @@ + + android:paddingBottom="16dp" /> -- cgit v1.2.3