- Integrated a SeekBar for volume adjustment in the cast connection dialog.
- Implemented a Cast listener to synchronize volume state between the remote device and the UI.
- Added volume icons and updated the dialog layout to include the control bar.
- Managed listener registration and UI updates within the dialog lifecycle.
Implemented View Binding in `CustomCastChooserDialogFragment` and `CustomCastControllerDialogFragment` to replace manual view lookups and improve lifecycle management.
- Replaced `findViewById` calls with `DialogCastChooserBinding`, `ItemCastDeviceBinding`, and `DialogCastConnectedBinding`.
- Added `onDestroyView` to properly nullify binding references.
- Updated `CastDeviceAdapter` to use View Binding in its `ViewHolder`.
Implemented custom UI for Google Cast device selection and session control, alongside improvements to the web remote interface and playback service.
- Added `CustomCastChooserDialogFragment` and `CustomCastControllerDialogFragment` to provide a custom casting experience.
- Implemented `CustomCastDialogFactory` to integrate custom dialogs into `MediaRouteButton` and `ExpandedControllerActivity`.
- Added marquee scrolling for station names and metadata in the web remote interface.
- Improved `PlayerService` stability with safer resource cleanup in `onDestroy` and enhanced remote playback initialization.
- Updated `CollectionHelper` to include additional metadata fields for better station display during casting.
- Added localized strings for custom cast dialogs across multiple languages.
- Refined `CustomCastExpandedControllerStyle` and associated layouts for better UI consistency.
Added a check to verify if the requested station is already the current media item and in a valid playback state before re-setting the media item and preparing.
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.
- Added `MediaPlayback` attribution tag to `AndroidManifest.xml`.
- Implemented `onPlaybackResumption` in `PlayerService` to restore the last played station upon session restart.
- Updated `onConnect` to grant all available player commands to connecting controllers.
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.
Implemented a search bar and favorites filter for the station list. Added a search button to the station collection card, updated the adapter to handle filtered datasets, and integrated the search UI into both mobile and Android TV layouts. Includes localized strings for multiple languages.
- 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
- Adjust `minWidth` and `minHeight` and add resize constraints in `favorites_widget_info.xml`.
- Update `previewImage` to use a new dedicated preview drawable.
- Add a `PendingIntent` to the widget root and header to launch `MainActivity`.
Implement a home screen widget for quick access to favorite stations.
Features theme-aware styling, custom theme color support, and updates
on collection or theme changes. Includes localized strings for all
supported languages.
- Include shared preferences and external storage in backup configurations.
- Exclude the `temp` directory from external storage backups.
- Add explicit `device-transfer` rules to `data_extraction_rules.xml`.
- Modify `.gitignore` to allow tracking of selected IDE settings while ignoring the rest of the `.idea` directory.
- Add `runConfigurations.xml`, `vcs.xml`, and `icon.png` to the repository.
- Remove `/captures` from `.gitignore`.
- Add a new "Arguments" field in the Advanced settings section.
- Implement SHA-256 hash-based argument checking in PreferencesHelper.
- Add support for a "Mute" mode (via hash) in PlayerService and SearchResultAdapter.
- Add support for toggling the Android TV overlay (via hash) in MainActivity.
- Update Keys.kt with new preference constants.
- Add translations for "Arguments" in all supported languages.
- Implement `drawFallback` using standard Canvas APIs to support devices below Android 13 (API 33).
- Refactor `onDraw` to toggle between shader-based rendering and the fallback animation.
- Update `setColor` to store the current color and trigger a redraw via `invalidate()`.
- Add anti-aliasing to the paint instance and use a reusable `RectF` for fallback rendering.
Introduce a custom `ShaderEffectView` that uses AGSL (`RuntimeShader`) to display a pulsing glow animation behind the station icon during playback on supported Android versions (API 33+).
* **Shader Animation**: Created `ShaderEffectView` to render a hardware-accelerated rounded rectangle glow effect with configurable colors and pulse timing.
* **Layout Integration**: Added the shader view to both mobile and Android TV layouts, ensuring it is properly layered behind the station artwork.
* **Lifecycle Management**: Updated `PlayerFragment` and `LayoutHolder` to start or stop the animation based on playback state and to synchronize the glow color with the station's primary image color.
* **Visibility Logic**: Implementation ensures the effect is only visible when a station image is present and playback is active.
Add a descriptive string to the `clean` task in `build.gradle.kts` and include the `CHANGE_WIFI_MULTICAST_STATE` permission in the Android manifest.
* **Build Script**: Updated the `clean` task to include a description clarifying that it deletes the build directory.
* **Permissions**: Added the `CHANGE_WIFI_MULTICAST_STATE` permission to support network discovery features. Included `tools:ignore="LeanbackUsesWifi"` to suppress Lint warnings regarding Wi-Fi usage on Android TV devices.