* Add identification for Google Chromecast HD
Possibly an upstream bug is preventing this from working, as the chromecast is being idenitified correctly in debugging.
* Update DeviceUtils.kt
Added a note for the reason of the change.
* Removed unintentional imports
* Update app/src/main/java/org/jellyfin/androidtv/util/DeviceUtils.kt
Make changes suggested by maintainer.
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
* Update DeviceUtils.kt
Removed unneeded isChromecastHD
---------
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
When a video is playing and on another device you browse libraries on a casting device it cause the app to crash
The onDisplayContent method is trying to read ExoPlayer state but from the socket thread and not the main thread
java.lang.IllegalStateException: Player is accessed on the wrong thread.
Current thread: 'DefaultDispatcher-worker-4'
Expected thread: 'main'
See https://developer.android.com/guide/topics/media/issues/player-accessed-on-wrong-thread
at androidx.media3.exoplayer.ExoPlayerImpl.verifyApplicationThread(ExoPlayerImpl.java:2842)
at androidx.media3.exoplayer.ExoPlayerImpl.getPlaybackState(ExoPlayerImpl.java:514)
at androidx.media3.common.BasePlayer.isPlaying(BasePlayer.java:124)
at org.jellyfin.androidtv.ui.playback.VideoManager.isPlaying(VideoManager.java:341)
at org.jellyfin.androidtv.ui.playback.PlaybackController.isPlaying(PlaybackController.java:262)
at org.jellyfin.androidtv.data.eventhandling.SocketHandler.onDisplayContent(SocketHandler.kt:184)
at org.jellyfin.androidtv.data.eventhandling.SocketHandler.lambda$13$lambda$8(SocketHandler.kt:103)
at org.jellyfin.androidtv.data.eventhandling.SocketHandler$$ExternalSyntheticLambda3.onReceive(Unknown Source:4)
at org.jellyfin.androidtv.data.eventhandling.SocketHandler$_init_$lambda$13$$inlined$addGeneralCommandsListener$default$1.onReceive(ListenerRegistrationExtensions.kt:68)
at org.jellyfin.sdk.api.sockets.helper.ListenerHelper.forwardMessage(ListenerHelper.kt:37)
at org.jellyfin.sdk.api.sockets.SocketInstance.forwardMessage(SocketInstance.kt:283)
at org.jellyfin.sdk.api.sockets.SocketInstance.access$forwardMessage(SocketInstance.kt:35)
at org.jellyfin.sdk.api.sockets.SocketInstance$connectAndBind$2.invokeSuspend(SocketInstance.kt:220)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
pick 13699f674 Initial commit
squash 7e8af2dc4 Modify RichListDialog to display subtitle colors
squash 19fcb1514 Modify RichListOption to display subtitle colors
Modify RichListDialog to display subtitle colors
Modify RichListOption to display subtitle colors
Add Subtitle options to preferences list
Added dark grey option and match master commit as much as possible
Fix line length
Fix line length
Fix API Level to Support 21 Lint Error 1
Fix API Level to Support 21 Lint Error 1
Fix API Level to Support 21 Lint Error 1
Fix API Level to Support 21 Lint Error 2
Update app/src/main/res/values/strings.xml
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/preference/UserPreferences.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/shared/StrokeTextView.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Requested resolutions implemented part 1
Update app/src/main/java/org/jellyfin/androidtv/ui/preference/dsl/OptionsColorList.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/shared/StrokeTextView.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Requested resolutions implemented part 2, restore RichListDialogFragment.kt and add ColorPickerDialogFragment and ColorListPreference
Requested resolutions implemented part 3, restore distributionkey
Rebased PlaybackPreferencesScreen.kt
Update app/src/main/java/org/jellyfin/androidtv/preference/UserPreferences.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/preference/dsl/OptionsColorList.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Resolve line length and magic number issues, using different background for the brighter colors
Update app/src/main/java/org/jellyfin/androidtv/ui/shared/StrokeTextView.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Resolve magic numbers attempt
Resolve line length issue
Remove unnecessary antialias
Update app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/preference/screen/PlaybackPreferencesScreen.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Move subtitle setting preference to where the rest of the settings are located
Resolve formatting issue in PlaybackPreferenceScreen
Update PlaybackPreferencesScreen.kt
Fixing formatting
Move subtitle setting preference to where the rest of the settings are located
Resolve formatting issue in PlaybackPreferenceScreen
Resolve import of userpreferences in StrokeTextView.kt
Removed unnecessary functions and data attributes from ColorPickerDialogFragment.k
Update app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Update app/src/main/java/org/jellyfin/androidtv/ui/preference/screen/PlaybackPreferencesScreen.kt
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Resolve magic numbers on lighter colors
Resolve positioning of subtitles and importing of preferences
Correct positioning of subtitlesTextColor in UserPreferences.kt
Lower Increment
Resolve preference issue
Resolve UserPreferences import