From e16a5257f5c02034cd9703f465b1ec006d4bb1b0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 28 May 2026 07:35:00 +0000 Subject: Tech debt: Room list fast-path, delete AnchorWatchHandler orphan, LogbookRepository thread safety MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../src/main/res/layout/fragment_anchor_watch.xml | 79 ---------------------- 1 file changed, 79 deletions(-) delete mode 100644 android-app/app/src/main/res/layout/fragment_anchor_watch.xml (limited to 'android-app/app/src/main/res/layout') 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3