mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
Implements a toggle switch in the HomeScreen top bar (next to Menu) that allows users to switch between online mode (fetching from Jellyfin server) and offline mode (using local database only). The preference persists across app restarts via Proto DataStore. Key changes: - Added ActiveMediaRepository that delegates to online/offline repositories based on user preference - Extended MediaRepository interface with continueWatching, nextUp, and latestLibraryContent - Added isOfflineMode state to UserSession with reactive Flow - Added Cloud/CloudOff icon toggle button to HomeTopBar - Updated ViewModels to use MediaRepository interface for better abstraction