Add focusable modifiers to interactive elements in AboutFragment to improve navigation support.
- Added `.focusable()` to the logo, contact cards, and external link elements.
- Cleaned up imports and method signatures in AboutFragment.kt.
- Add AboutFragment with Compose UI including app info, FAQ, supported
formats, Android TV controls, and credits
- Add navigation from Settings to About screen
- Fix PlayerService to skip empty/"null" metadata entries
- Improve PreferencesHelper.loadMetadataHistory() with type-safe
deserialization and null filtering
- Add material-icons-extended dependency and localized strings
Created a centralized `RadioTheme` component that handles system dark mode and custom background colors based on user preferences. Updated `LicenseFragment` to use the new theme.
- Relocate all fragments to a new `.fragments` subpackage.
- Enable Jetpack Compose and add dependencies for Material3 and `aboutLibraries`.
- Implement `LicenseFragment` using Compose to display third-party library information.
- Update the navigation graph and localization strings to support the new License screen.
- Simplify station bitrate display logic in `LayoutHolder`.
- Add `composeCompiler` and `aboutLibraries` plugins to the build configuration.
- 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`.
- 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.
- Enhance metadata extraction in `AudioHelper` by adding `VorbisComment` support and improving "Artist - Title" parsing for Icy streams.
- Implement thread safety in `ExtrasHelper` using a synchronization lock for native visualization and surface lifecycle management.
- Refactor visualizer update logic in `VisualizerFragment` to improve performance and error resilience.
- Remove redundant buffer position calls in `NativeAudioProcessor`.
- Clean up `AudioHelper` logic using Kotlin idiomatic patterns for string building and property access.
Increment the notification IDs used in `SettingsFragment` and
`PlayerFragment`. This updates the identifiers for the test,
share-app, and update-available notifications.
Update `NotificationSys.showNotification` to accept an optional `id`
parameter. This allows different notifications to be displayed
simultaneously by the system instead of overwriting each other.
In `SettingsFragment` and `PlayerFragment`, assign specific unique IDs
for test, share, and update notifications.
Introduce a new custom theme feature that allows users to personalize the application background color using RGB sliders, hex input, or a set of predefined palettes.
Key changes include:
* **Custom Theme Engine**: Added `CustomThemeFragment` and `ThemeHelper` to manage color selection and application. The UI dynamically updates the background color across the `MainActivity` and `PlayerFragment` when preferences change.
* **Android TV Support**: Provided a specialized layout for television devices (`fragment_custom_theme.xml` in `layout-television`) with optimized focus handling for D-pad navigation.
* **Share Feature**: Implemented a "Share App" preference in `SettingsFragment` that triggers a standard Android share intent and displays a thank-you notification upon use.
* **Localization**: Added Ukrainian language support and updated string resources for multiple locales (DE, DA, EL, FR, JA, NL, PL, RU) to include the new theme and share options.
* **Persistence**: Updated `PreferencesHelper` and `Keys` to store theme-related settings, including the enabled state, selected color, and predefined color index.
Replace manual bottom margin adjustments with `setAnchorView` for Snackbars to ensure they are positioned correctly above the bottom sheet on mobile devices.
- In `LayoutHolder`, make `bottomSheet` public to allow access from other components.
- In `PlayerFragment` and `MainActivity`, replace `FrameLayout.LayoutParams` modifications with `setAnchorView(bottomSheet)`.
- Maintain standard Snackbar behavior for Android TV where the bottom sheet is not present.
Add explicit `POST_NOTIFICATIONS` permission checks in `SettingsFragment` and `PlayerFragment` before triggering notifications or showing related preferences.
Update the permission launcher in `MainActivity` to provide a "Settings" action that links to the system application details when the notification permission is permanently denied.
Improve UI and system integration by:
* Adjusting `Snackbar` positioning with bottom margins in `MainActivity` and `PlayerFragment`.
* Updating `NotificationSys` to use a new channel ID with `IMPORTANCE_LOW`.
* Configuring `MainActivity` in `activity_main.xml` to handle orientation and screen size configuration changes manually.
Explicitly pass `Manifest.permission.POST_NOTIFICATIONS` to the
`RequestPermission` contract to ensure the correct permission is
requested on Android 13+.
Update `NotificationSys` to support passing a custom `Intent` when
showing notifications. This enables more flexible navigation, such as
opening a web URL for update notifications.
In `PlayerFragment`, use this new capability to trigger a browser
intent for update notifications on non-Android TV devices.
Update the Android TV feature check to use the instance-based
`packageManager` instead of the static `PackageManager` class.
This ensures the `hasSystemFeature` method is called correctly on
the available context instance.
Correct the usage of `hasSystemFeature` by calling it on the `packageManager` instance instead of the `PackageManager` class. This fixes a compilation error in `MainActivity` and `SettingsFragment`.