summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/res/layout/activity_main.xml
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-02 04:52:10 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-02 04:52:10 +0000
commit715806c626aeb0f0101f8be5bae0f6179b28e3cb (patch)
tree6e757af3696dadd0d9f48bcc132ba9617caa6dcb /android-app/app/src/main/res/layout/activity_main.xml
parent80aa2531144563e8a117ffd81f6dd6d9af8bd574 (diff)
fix+feat: track layer cleanup, notification, log redesign, color consistencymain
- 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 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/main/res/layout/activity_main.xml')
-rw-r--r--android-app/app/src/main/res/layout/activity_main.xml7
1 files changed, 4 insertions, 3 deletions
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" />
<!-- Fishing mode overlay card — bottom-start, above bottom sheet -->
<org.terst.nav.ui.fishing.FishingOverlayView
@@ -126,7 +126,8 @@
android:layout_height="wrap_content"
app:behavior_hideable="false"
app:behavior_peekHeight="120dp"
- app:cardElevation="4dp"
+ app:cardElevation="0dp"
+ app:cardBackgroundColor="?attr/colorSurfaceContainerHigh"
app:strokeWidth="0dp"
app:shapeAppearance="@style/ShapeAppearance.Nav.BottomSheet"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
@@ -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" />
</LinearLayout>