Skip to content

Commit

Permalink
Merge pull request #36 from omer358/dev
Browse files Browse the repository at this point in the history
fix #35
  • Loading branch information
omer358 authored Jul 31, 2024
2 parents ea27510 + 4964499 commit b08950c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ class SettingsViewModel @Inject constructor(

private fun getTheme() {
viewModelScope.launch {
_themeMode.update {
themeUseCases.getThemeMode().first()
themeUseCases.getThemeMode().collect{newTheme ->
_themeMode.update {newTheme }
Log.d(TAG, "getTheme: ${_themeMode.value}")

}
Log.d(TAG, "getTheme: ${_themeMode.value}")
}
}

Expand Down

0 comments on commit b08950c

Please sign in to comment.