mirror of
https://github.com/Michatec/Radio.git
synced 2026-05-31 09:52:40 +02:00
Add support for Android TV and update dependencies
* Implement initial Android TV support, including `LEANBACK_LAUNCHER` intent filter, hardware feature declarations, and television-specific layouts for the player, search results, and dialogs. * Add a splash/loading screen for the TV interface and a dedicated `SplashTheme`. * Improve DPAD navigation by adding `OnKeyListener` for station cards and allowing focus on internal elements. * Update `LayoutHolder` and `PlayerFragment` to handle TV layouts and add previous/next station navigation buttons. * Adjust `PreferencesHelper` to disable station editing by default on TV devices. * Update `androidx.media3` to v1.10.0, `work-runtime-ktx` to v2.11.2, and add `androidx.leanback` dependency. * Bump `versionCode` to 144 and `versionName` to 14.4. * Refactor `PlayerService` to simplify sleep timer cancellation logic. * Remove stale copyright headers and license comments from several Kotlin files.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
<item name="colorSurface">@color/player_sheet_background</item>
|
||||
<item name="materialAlertDialogBodyTextStyle">@style/TextAppearance.MaterialComponents.Body1</item>
|
||||
<item name="android:backgroundDimAmount">0.64</item>
|
||||
<item name="colorControlActivated">#FFDAE2FF</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay.App.TimePicker" parent="ThemeOverlay.MaterialComponents.TimePicker">
|
||||
@@ -49,5 +50,10 @@
|
||||
<item name="android:background">@color/player_sheet_background</item>
|
||||
<item name="dialogCornerRadius">28dp</item>
|
||||
<item name="checkedTextViewStyle">@style/AlertDialog.TextColor</item>
|
||||
<item name="colorControlActivated">#FFDAE2FF</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
<style name="AlertDialog.TextColor" parent="@style/TextAppearance.MaterialComponents.Body1">
|
||||
<item name="android:textColor">?attr/colorControlNormal</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user