<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nav.git/android-app/app/src/test/kotlin/org/terst/nav/logbook, branch main</title>
<subtitle>nav — android navigation app
</subtitle>
<id>https://git.terst.org/nav.git/atom?h=main</id>
<link rel='self' href='https://git.terst.org/nav.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.terst.org/nav.git/'/>
<updated>2026-05-25T19:02:33+00:00</updated>
<entry>
<title>Fix bugs from static analysis; add test coverage for new code</title>
<updated>2026-05-25T19:02:33+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-05-25T19:02:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.terst.org/nav.git/commit/?id=04b5b7f6aa469a368bcf8f1d75046770d3f83d63'/>
<id>urn:sha1:04b5b7f6aa469a368bcf8f1d75046770d3f83d63</id>
<content type='text'>
Bugs fixed:
- LogbookStorage.copyFromUri: return null when ContentResolver returns null
  stream instead of returning a path to an unwritten file
- VoiceLogFragment adapter: decode photos as downsampled thumbnails
  (128x96 target) using BitmapFactory inSampleSize instead of loading
  full-resolution bitmaps on the main thread

Tests added:
- LogbookRepositoryTest: ID sequencing, insertion order, storage delegation,
  reload from persisted state, lat/lon preservation
- TripReportGeneratorTest: log entry time-range filtering, distance
  calculation, empty-points edge case, all narrative styles smoke-tested

https://claude.ai/code/session_01YUbuZNDAoLea4cf9UGQ9qn
</content>
</entry>
</feed>
