diff options
| author | Claude <noreply@anthropic.com> | 2026-05-28 07:35:00 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-05-28 07:35:00 +0000 |
| commit | e16a5257f5c02034cd9703f465b1ec006d4bb1b0 (patch) | |
| tree | 264f0f4342eef2bc4e50a9533d63185f9d99c629 /android-app/app/src/main/res | |
| parent | d25fbc7664133bedab51b3da61581ef42c69ab8d (diff) | |
Tech debt: Room list fast-path, delete AnchorWatchHandler orphan, LogbookRepository thread safety
Room fast-path (item 3):
- TrackEntity.toShallowSavedTrack() reconstructs SavedTrack from cached summary
data using two placeholder TrackPoints that preserve correct endMs for logbook
filtering without parsing GPX
- TrackRepository.getSavedTracksFromRoom() returns shallow tracks sorted by startMs
- MainViewModel.init{} now shows Room data immediately (no spinner on warm start),
then replaces with full GPX-parsed tracks once background load completes
AnchorWatchHandler orphan (item 4):
- Deleted ui/anchorwatch/AnchorWatchHandler.kt — the anchor depth/rode form was
inlined into SafetyFragment; this Fragment had no navigation entry points left
- Deleted layout/fragment_anchor_watch.xml (only referenced by the deleted Fragment)
LogbookRepository thread safety (item 6):
- Added @Synchronized to save(), getAll(), and reload() to prevent concurrent
mutation of the entries list and nextId counter across coroutine contexts
https://claude.ai/code/session_01KXYBuAHZkvv63DeUG6XaZD
Diffstat (limited to 'android-app/app/src/main/res')
| -rw-r--r-- | android-app/app/src/main/res/layout/fragment_anchor_watch.xml | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/android-app/app/src/main/res/layout/fragment_anchor_watch.xml b/android-app/app/src/main/res/layout/fragment_anchor_watch.xml deleted file mode 100644 index 96b9969..0000000 --- a/android-app/app/src/main/res/layout/fragment_anchor_watch.xml +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<ScrollView - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:padding="16dp"> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/anchor_watch_title" - android:textSize="20sp" - android:textStyle="bold" - android:layout_marginBottom="24dp" /> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/anchor_depth_label" - android:textSize="14sp" - android:layout_marginBottom="4dp" /> - - <EditText - android:id="@+id/etDepth" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:hint="@string/anchor_depth_hint" - android:inputType="numberDecimal" - android:importantForAutofill="no" - android:layout_marginBottom="16dp" /> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/anchor_rode_label" - android:textSize="14sp" - android:layout_marginBottom="4dp" /> - - <EditText - android:id="@+id/etRodeOut" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:hint="@string/anchor_rode_hint" - android:inputType="numberDecimal" - android:importantForAutofill="no" - android:layout_marginBottom="24dp" /> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/anchor_suggested_radius_label" - android:textSize="14sp" - android:layout_marginBottom="4dp" /> - - <TextView - android:id="@+id/tvSuggestedRadius" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/anchor_suggested_radius_empty" - android:textSize="18sp" - android:textStyle="bold" - android:layout_marginBottom="4dp" /> - - <TextView - android:id="@+id/tvSuggestedRadiusHint" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/anchor_suggested_radius_hint" - android:textSize="12sp" - android:alpha="0.6" /> - - </LinearLayout> - -</ScrollView> |
