Commit Graph
6 Commits
Author SHA1 Message Date
Michatec 40b5685c8a refactor(settings): centralize preference handling and simplify dialogs
Refactored `SettingsFragment` to use `OnSharedPreferenceChangeListener` for updating the UI, replacing multiple individual listeners and custom dialog interfaces. Simplified dialog classes by removing listener callbacks and relying on direct preference storage.

- Refactored `SettingsFragment` to centralize preference updates in `onSharedPreferenceChanged`.
- Removed `LanguageSelectionDialogListener`, `PresetSelectionDialogListener`, and `ThemeSelectionDialogListener` interfaces.
- Added a fallback artwork URL for casting when station-specific images are unavailable.
- Improved `PlayerService` lifecycle management to prevent service termination during casting or remote control active states.
- Modified sleep timer logic to only cancel on explicit user-initiated pauses.
- Updated `RemoteControlServer` to manage the server instance via a companion object.
- Updated README to reflect version 15.1+ features including Android TV and Google Cast support.
- Removed redundant `pause()` call in `MediaController.play` extension.
2026-08-16 00:34:06 +02:00
Michatec 14f2eeabe1 feat(remote-control): add remote authentication plugin and enhance API routes 2026-08-10 22:56:56 +02:00
Michatec 04ec33fad5 feat(remote-control): implement authentication for remote control access and update API documentation 2026-08-10 22:39:53 +02:00
Michatec 6ad627964b feat(websocket): add WebSocket support for real-time status updates and enhance API documentation 2026-08-06 19:44:25 +02:00
Michatec 79e79b3811 feat(adapter): replace notifyDataSetChanged with DiffUtil and enhance remote control
Improved UI performance by implementing DiffUtil in CollectionAdapter and SearchResultAdapter. Updated the web remote control to display starred status and provide more accurate playback state reporting.

- Replaced manual notify calls with DiffUtil for efficient list updates.
- Added starred status to the web UI and remote control API.
- Fixed station reordering and expansion logic in CollectionAdapter.
- Improved playback resume logic in PlayerService to handle idle states.
- Prevented potential memory leaks by properly managing TextWatchers in ViewHolders.
2026-08-05 20:08:17 +02:00
Michatec 8fa73ff6f9 feat: add web remote control with translations
- Implement embedded Ktor remote control server (port 8080)
- Add REST API endpoints for play/pause/next/prev/status
- Add web UI with localization support
- Add remote control preference toggle and settings integration
- Translate remote control strings to all supported languages
2026-07-29 19:45:08 +02:00