lotherk a43816a3ae Per-library storage: switching the folder switches the library
Stats, likes and thumbnail artwork now belong to the open folder instead of one
global store.

- Library.id(context) is the identity: the picked SAF tree, else the default
  folder path
- StatsDb opens stats-<12-hex>.db derived from that id (StatsStore, pure and unit
  tested), so a different folder has its own sessions, likes and export
- exports are stats-<tag>.json and carry a "library" field
- thumbnails live under filesDir/thumbs/<tag>/, so artwork never mixes between
  folders
- MainActivity rebuilds its StatsDb when the library id changes; player and stats
  screen always open the current one
- the single stats.db of earlier builds is copied once into the first library
  that opens, so the existing history and like survive; other folders start empty

Built and tested locally only (21 unit tests, lint green) — the tablet still runs
the previous build because the child was watching.
2026-10-28 18:52:35 +00:00
S
Description
KidsTube -- Android app for a curated kids video library on a Jellyfin server
1,019 KiB
0 Stars 3 Watchers 0 Forks
Languages
Kotlin 100%