diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-02 02:56:25 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-02 02:56:25 +0000 |
| commit | 80aa2531144563e8a117ffd81f6dd6d9af8bd574 (patch) | |
| tree | 6acce796022be8663ef9b13763f358771c33654e /android-app/app/src/main/res/layout/fragment_safety.xml | |
| parent | d0164358d2f449d40f7c79149dccfdd5bfa79d7f (diff) | |
fix+feat: layer cards, ocean floor, notifications, units, log, photos
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 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/main/res/layout/fragment_safety.xml')
| -rw-r--r-- | android-app/app/src/main/res/layout/fragment_safety.xml | 6 |
1 files changed, 5 insertions, 1 deletions
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"> <LinearLayout android:layout_width="match_parent" @@ -179,6 +181,7 @@ android:layout_marginEnd="8dp"> <TextView + android:id="@+id/tv_anchor_depth_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/anchor_depth_label" @@ -203,6 +206,7 @@ android:layout_marginStart="8dp"> <TextView + android:id="@+id/tv_anchor_rode_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/anchor_rode_label" |
