Skip to content

Commit

Permalink
languagecodes filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwajith-Shettigar committed Oct 5, 2023
1 parent 4e11083 commit efaaabf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,12 @@ class AudioViewModel @Inject constructor(
}
}

fun getSupportedLanguageCodes(): MutableList<String> {
val supportedAudioLanguageCodes = AudioLanguage.values().toList()
fun getSupportedLanguageCodes(): List<String> {
val supportedAudioLanguageCodes = AudioLanguage.values()
.map { audioLanguage ->
getAudioLanguage(audioLanguage)
} as MutableList<String>
}
.toMutableList()
supportedAudioLanguageCodes.add("hi-en")
return supportedAudioLanguageCodes
}
Expand Down

0 comments on commit efaaabf

Please sign in to comment.