diff --git a/app/src/main/kotlin/com/yasinkacmaz/jetflix/ui/movies/MoviesViewModel.kt b/app/src/main/kotlin/com/yasinkacmaz/jetflix/ui/movies/MoviesViewModel.kt index 658a4618..47ed3f2c 100644 --- a/app/src/main/kotlin/com/yasinkacmaz/jetflix/ui/movies/MoviesViewModel.kt +++ b/app/src/main/kotlin/com/yasinkacmaz/jetflix/ui/movies/MoviesViewModel.kt @@ -52,7 +52,7 @@ class MoviesViewModel( private val filterStateChanges = MutableSharedFlow() private val selectedLanguageChanges = MutableSharedFlow() - val stateChanges: Array> get() = arrayOf( + val stateChanges: Array> = arrayOf( filterStateChanges.asSharedFlow(), searchQueryChanges.asSharedFlow(), selectedLanguageChanges.asSharedFlow(), diff --git a/app/src/main/kotlin/com/yasinkacmaz/jetflix/ui/settings/SettingsDialog.kt b/app/src/main/kotlin/com/yasinkacmaz/jetflix/ui/settings/SettingsDialog.kt index 33ffd0ec..9ac4977a 100644 --- a/app/src/main/kotlin/com/yasinkacmaz/jetflix/ui/settings/SettingsDialog.kt +++ b/app/src/main/kotlin/com/yasinkacmaz/jetflix/ui/settings/SettingsDialog.kt @@ -84,7 +84,7 @@ private fun LanguageRow( onDismissRequest = { showDropdown = false }, ) { languages.forEach { language -> - val selected = language.iso6391 == selectedLanguage.iso6391 + val selected = language == selectedLanguage DropdownItem( countryName = language.displayName, flagUrl = language.flagUrl,