- Add `StationHealthChecker` to asynchronously test station stream availability, response codes, and latency.
- Add long-click listener on the save button in `CollectionAdapter` to trigger health checks and display results via `Snackbar`.
- Add localized string resources for stream health check status UI messages.
- Update `provider_paths.xml` to include internal files and cache directory paths for FileProvider.
- Add handling for `PLAY` and `PLAY_STATION` actions in `PlayerService.onStartCommand`.
- Update `RadioApiService` to trigger playback via intents when `playbackController` is not yet initialized.
- Add `startPlayerService` helper method in `RadioApiService` to encapsulate service starting logic.
- Add a 500ms delay using `Handler` before triggering playback actions to ensure controller availability.
- Remove `EXTRA_STATION_UUID` from the `PlayerService` start intent.
- Transition to calling `playbackController.play()` and `playbackController.playStationByUuid(uuid)` directly.
- Remove `EXTRA_PLAY_COMMAND`, `PLAY_COMMAND_PLAY`, and `PLAY_COMMAND_PLAY_STATION` constants from `Keys.kt`.
- Remove manual play command handling in `PlayerService.onStartCommand`.
- Simplify `PlayerService` start intents in `RadioApiService` by removing unnecessary play command extras.
- Add `EXTRA_PLAY_COMMAND`, `PLAY_COMMAND_PLAY`, and `PLAY_COMMAND_PLAY_STATION` constants to `Keys.kt`.
- Update `PlayerService.onStartCommand` to process playback commands from intent extras.
- Modify `RadioApiService` to pass playback commands when starting `PlayerService`.
- Update `PlayerService` to return the media title instead of artist in `getCurrentMetadata`.
- Refactor `RemoteControlServer` to retrieve `currentTrack` directly from media metadata instead of loading from metadata history.
- Skip adding metadata to the history list if the metadata string matches the current station name.
- Move `currentMediaItem` retrieval earlier in the processing logic to facilitate the station name comparison.
- Add `updateMetadata` function to `LayoutHolder` to handle metadata persistence in `metadataHistory` and update UI views.
- Implement `onMediaMetadataChanged` in `PlayerFragment` to trigger metadata updates from the media controller.
- Integrate history management logic to save unique metadata entries and enforce maximum history size via `PreferencesHelper`.
- Update `PlayerService.kt` to fetch the station name from the collection using `mediaId` via `CollectionHelper`.
- Fall back to the existing artist metadata if the retrieved station name is empty.
- Update the current `MediaItem` in `PlayerService.kt` when new metadata is received.
- Set the original station name as the artist and the new metadata string as the title and display title.
- Replace the current media item in the player to ensure UI components reflect the updated metadata.
- Wrap all overridden methods in `RadioApiService.PlaybackController` with `runBlocking(Main)`.
- Ensure player operations and media metadata retrievals in `PlayerService` execute safely on the main thread.
- Introduce the `IRadioApi` AIDL interface and `RadioApiService` to support external IPC playback control and station metadata retrieval.
- Connect `PlayerService` to `RadioApiService` using an internal `PlaybackController` callback interface.
- Extract background battery optimization logic from `Shizuku` into a dedicated `RadioPowerManager` class featuring atomic backup, restoration, and rollback capabilities.
- Update `ShizukuFragment` to execute power optimization tasks asynchronously via Kotlin coroutines.
- Enable AIDL feature support in Gradle, add documentation in `API_DOC.md`, and include `junit` and `mockito-core` test dependencies.
- Implement `Shizuku` helper and `ShizukuFragment` using Jetpack Compose to manage system permissions and Doze mode battery optimization whitelisting.
- Add Shizuku API and provider dependencies, manifest provider configuration, vector icon, and localized strings.
- Add Shizuku preference entry to `SettingsFragment` and navigation graph.
- Update QR code verification logic to show a toast message on Android TV instead of hiding the preference.
- Remove unused `ACTION_REMOTE_SERVER_ERROR` and `ACTION_REMOTE_AUTH_FAILED` constants from `Keys.kt`.
- Simplify `constantTimeEquals` implementation in `SettingsFragment.kt`.
- Refactor `preferenceEnableEditingStreamUri` enablement logic to use a concise boolean expression.
- Rename "server app" to "Radio app" in pairing documentation.
- Simplify security warning in documentation.
- Fix grammar (short-lived).
- Unconditionally add QR verification preference to the Remote Control settings category.
- Add `QrCaptureActivity` to support scanning QR codes for authentication.
- Implement `PairingManager` to handle short-lived pairing sessions.
- Expose new API endpoints for pairing start, status polling, and QR image generation.
- Add UI modal to the web interface for pairing code input and QR code display.
- Increase Gradle JVM heap size to 4096m.
- Include necessary permissions and dependencies for barcode scanning.
- Implement `/api/stream` endpoint to provide the current station's audio URI.
- Refactor the frontend into modular `api.js`, `ui.js`, and `script.js` files.
- Add a "Listen on Web" feature to play radio streams directly in the browser.
- Update the backend to serve and whitelist new JavaScript assets.
- Add multi-language translations for the web streaming toggle.
- Wrap color scheme calculation in `remember` to prevent unnecessary recomputations in `AppTheme`.
- Add a `SessionManagerListener` to `CustomCastControllerDialogFragment` to automatically dismiss the dialog when a cast session ends or is suspended.
- Clean up imports in `CustomCastControllerDialogFragment`.
- Migrate `CustomCastChooserDialogFragment` and `CustomCastControllerDialogFragment` from View-based to Jetpack Compose.
- Create `CastComposables.kt` containing new Compose UI for Cast device selection and volume control.
- Remove legacy XML layouts `dialog_cast_chooser.xml`, `dialog_cast_connected.xml`, and `item_cast_device.xml`.
- Refactor `AppTheme.kt` to simplify color scheme logic and wrap content in a `Surface`.
- Add `ic_shader_24dp.xml` and update the shader effect preference icon in `SettingsFragment`.
- Adjust `windowLightStatusBar` and `windowLightNavigationBar` in night theme styles.
- Add `PREF_SHADER_EFFECT` key and helper method to `PreferencesHelper`.
- Implement visibility and animation logic in `LayoutHolder` based on the shader effect preference.
- Add "Shader Effect" switch preference to `SettingsFragment`.
- Update `PlayerFragment` to refresh views when the shader effect setting changes.
- Add localized strings for the new setting in multiple languages.
- Added a custom notification sound resource and configured `AudioAttributes` for the notification channel.
- Localized the notification channel name using string resources across multiple languages.
- Increased notification channel importance from `LOW` to `DEFAULT`.
- Refactored `TAG` constants in `ExtrasHelper` and `NativeAudioProcessor` to use dynamic class names.
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.