We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 419e642 commit 865c8d0Copy full SHA for 865c8d0
ui/src/main/java/com/theoplayer/android/ui/util/TrackExts.kt
@@ -53,11 +53,9 @@ internal val Track.localizedLanguageName: String?
53
internal fun constructLabel(
54
track: Track,
55
): String? {
56
- val playerVersion = THEOplayerGlobal.getVersion().toVersion()
57
-
58
val label: String? = if (
59
(track is TextTrack) &&
60
- playerVersion.major < 11 &&
+ THEOplayerGlobal.getVersion().toVersion().major < 11 &&
61
(isLabelCeaFormatted(track.label) || (track.label != null && track.language == track.label))
62
) {
63
// If we are below 11th major release
0 commit comments