From 80aa2531144563e8a117ffd81f6dd6d9af8bd574 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 2 Jul 2026 02:56:25 +0000 Subject: fix+feat: layer cards, ocean floor, notifications, units, log, photos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Layer picker: - Fix blank cards: app:layout_columnWeight → android:layout_columnWeight (GridLayout children require android: namespace for weight attributes) - Add Distance unit chips (nm/km/mi) to UNITS section Map layers: - Fix ocean floor: use addLayerAbove(lastFillLayer) instead of addLayerAt(0) so base rasters appear above OFM water/land fills but below roads+labels - CardView elevation 16dp→4dp to eliminate visible shadow border Notifications: - Add POST_NOTIFICATIONS to manifest - Request it alongside location permissions on Android 13+ (TIRAMISU+) Conditions sheet: - showOverlay() now always hides bottom sheet (STATE_HIDDEN) so it can't leak onto non-map pages; bottom padding (80dp) added to Safety+Log panes Log entries: - Log entry form visible always (was only shown while recording) - Photo-only events filtered from track timeline; photos appear only when paired with real text in a log entry Anchor watch: - Inputs and output radius now use configured depth unit (ft/m) with label updates and ft→m conversion before calculation Photos: - Tap thumbnail in track event log → fullscreen dialog viewer Co-Authored-By: Claude Sonnet 4.6 --- .../app/src/main/res/layout/activity_main.xml | 2 +- .../app/src/main/res/layout/fragment_safety.xml | 6 +- .../app/src/main/res/layout/fragment_voice_log.xml | 9 +-- .../main/res/layout/layout_layer_picker_sheet.xml | 69 +++++++++++++++++----- 4 files changed, 66 insertions(+), 20 deletions(-) (limited to 'android-app/app/src/main/res') 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 ed1b7ce..99aa192 100644 --- a/android-app/app/src/main/res/layout/activity_main.xml +++ b/android-app/app/src/main/res/layout/activity_main.xml @@ -126,7 +126,7 @@ android:layout_height="wrap_content" app:behavior_hideable="false" app:behavior_peekHeight="120dp" - app:cardElevation="16dp" + app:cardElevation="4dp" app:strokeWidth="0dp" app:shapeAppearance="@style/ShapeAppearance.Nav.BottomSheet" app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"> 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 78f8754..4a8efa9 100644 --- a/android-app/app/src/main/res/layout/fragment_safety.xml +++ b/android-app/app/src/main/res/layout/fragment_safety.xml @@ -4,7 +4,9 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?attr/colorSurface"> + android:background="?attr/colorSurface" + android:clipToPadding="false" + android:paddingBottom="80dp"> + android:layout_height="match_parent" + android:clipToPadding="false" + android:paddingBottom="80dp"> - + + android:orientation="vertical"> + android:gravity="center_vertical" + android:layout_marginBottom="10dp"> + + + + + + + + + + -- cgit v1.2.3