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 }