From 9af38934e8d676bfb8c08ab01e3d57fec5f36d97 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 30 Jun 2026 17:16:06 +0000 Subject: feat: UX improvements + HAW FAD data + fishing mode plan Dark mode: - Force light mode (AppCompatDelegate.MODE_NIGHT_NO) in NavApplication Log screen: - Tracks sorted newest-first (sortedByDescending startMs) - Photos/entries saved during a track tagged with trackId; ship's log shows only standalone entries (trackId == null) - "Plan Trip" button moved from safety screen to log screen header row - Pre-trip report auto-generates (newAutoInstance) when a track starts Safety screen: - Removed "Plan Trip" button (now in log screen) - Quit button moved to top title row - Anchor Watch section collapses by default (tap header to expand) - Hardware Data Sources section collapses by default (tap header to expand) Notifications + idle: - Tracking notification becomes persistent (setOngoing true) while recording - Notification title changes to "Recording track" when active - App exits automatically after 3 hours of idle (resetIdleTimer via onUserInteraction + onResume; suspended while recording) FAD layer: - FadData.kt: 18 Hawaii Island DLNR FAD coordinates hardcoded (source: DLNR Division of Aquatic Resources 6/14/07) - FAD GeoJSON populated on style load from static data Fishing mode plan: - docs/superpowers/plans/2026-06-30-fishing-mode.md: 7-task plan for RigAdvisor, SST tiles, FishingModeManager, FishingOverlayView, steering bearing line, and FAB integration Co-Authored-By: Claude Sonnet 4.6 --- .../app/src/main/res/layout/fragment_safety.xml | 522 ++++++++++++--------- .../app/src/main/res/layout/fragment_voice_log.xml | 31 +- 2 files changed, 315 insertions(+), 238 deletions(-) (limited to 'android-app/app/src/main/res/layout') diff --git a/android-app/app/src/main/res/layout/fragment_safety.xml b/android-app/app/src/main/res/layout/fragment_safety.xml index 1d499ab..420ccef 100644 --- a/android-app/app/src/main/res/layout/fragment_safety.xml +++ b/android-app/app/src/main/res/layout/fragment_safety.xml @@ -1,335 +1,395 @@ - - - - - - - + android:orientation="vertical" + android:padding="24dp"> + + android:orientation="horizontal" + android:gravity="center_vertical" + android:layout_marginBottom="24dp"> + + + android:text="Quit" + android:textColor="?attr/colorOnSurfaceVariant" + app:icon="@drawable/ic_close" /> + android:id="@+id/button_help_safety" + style="@style/Widget.Material3.Button.TextButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="HELP" /> - - - - - - + - - + android:layout_marginBottom="16dp" + app:cardCornerRadius="16dp"> - + android:orientation="vertical" + android:padding="16dp" + android:gravity="center"> - + + + - + - - + - + + android:layout_marginBottom="16dp" + app:cardCornerRadius="16dp"> - + android:orientation="vertical" + android:padding="16dp"> - + + + + + + + + + + + android:orientation="vertical" + android:padding="16dp"> + + android:orientation="horizontal" + android:gravity="center_vertical" + android:clickable="true" + android:focusable="true"> + + - - + + android:visibility="gone"> - - - - - + android:orientation="horizontal" + android:layout_marginTop="16dp"> + + + + + + + + + + + + + + + + + + - + - + - + - + - - + - + + android:layout_marginBottom="16dp" + app:cardCornerRadius="16dp"> - - - - - + android:orientation="vertical" + android:padding="16dp"> + + android:orientation="horizontal" + android:gravity="center_vertical" + android:clickable="true" + android:focusable="true"> + android:layout_weight="1" + android:text="HARDWARE DATA SOURCES" + android:textStyle="bold" /> - - - - - - - + - - + android:orientation="vertical" + android:visibility="gone"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - - - - + - + 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 346ba81..b1c440c 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 @@ -189,15 +189,32 @@ android:layout_marginBottom="16dp" /> - + android:orientation="horizontal" + android:gravity="center_vertical" + android:layout_marginBottom="8dp"> + + + + + +