File tree Expand file tree Collapse file tree
ui/src/main/java/com/theoplayer/android/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ fun rememberTrackLabel(
9393 }
9494 },
9595 )
96- if (! label.isNullOrEmpty ()) {
96+ if (! label.isNullOrBlank ()) {
9797 return @remember label
9898 }
9999 val localisedLanguage = track.localisedLanguage
Original file line number Diff line number Diff line change 11package com.theoplayer.android.ui.util
22
3+ import androidx.annotation.CheckResult
34import androidx.annotation.IntRange
45
56private val CEA_FORMATTING_REGEX = " ^CC(\\ d+)$" .toRegex()
67
78/* *
89 * Checks whether a provided label is CEA-608 or CEA-708 formed.
910 */
11+ @CheckResult
1012internal fun isLabelCeaFormatted (label : String? ): Boolean {
1113 if (label == null ) {
1214 return false
@@ -32,6 +34,7 @@ internal fun isLabelCeaFormatted(label: String?): Boolean {
3234 * @return an optional string composed of a [channelNumber] and a prepended
3335 * "CC" suffix, or `null` if the channel number is invalid.
3436 */
37+ @CheckResult
3538internal fun getLabelForChannelNumber (
3639 @IntRange(from = 0L , to = 63L ) channelNumber : Int? ,
3740): String? {
You can’t perform that action at this time.
0 commit comments