mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 15:02:21 +02:00
The Library tab State held the page offsets, the load-more guard, the count and page snapshot caches, the blank-library repair throttle and their trim and scope rules inline. QueueLibraryPager in lib/controllers now owns that state and logic; the State keeps one _pager field and forwards, passing setState, mounted and the provider reloads as callbacks. The page request and page data types implement two small interfaces so the pager can compare scopes and test emptiness without seeing the private types. Provider reads, page size, trim limits, the repair throttle and the order of cache writes and setState calls are unchanged.