From efaaabfe0ca19925225807eaa2c4dd263761ff16 Mon Sep 17 00:00:00 2001 From: Vishwajith-Shettigar Date: Thu, 5 Oct 2023 10:04:54 +0530 Subject: [PATCH] languagecodes filtered --- .../org/oppia/android/app/player/audio/AudioViewModel.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/oppia/android/app/player/audio/AudioViewModel.kt b/app/src/main/java/org/oppia/android/app/player/audio/AudioViewModel.kt index 3b5579f1091..ca525f4ff7e 100644 --- a/app/src/main/java/org/oppia/android/app/player/audio/AudioViewModel.kt +++ b/app/src/main/java/org/oppia/android/app/player/audio/AudioViewModel.kt @@ -146,11 +146,12 @@ class AudioViewModel @Inject constructor( } } - fun getSupportedLanguageCodes(): MutableList { - val supportedAudioLanguageCodes = AudioLanguage.values().toList() + fun getSupportedLanguageCodes(): List { + val supportedAudioLanguageCodes = AudioLanguage.values() .map { audioLanguage -> getAudioLanguage(audioLanguage) - } as MutableList + } + .toMutableList() supportedAudioLanguageCodes.add("hi-en") return supportedAudioLanguageCodes }