File tree Expand file tree Collapse file tree
app/src/main/kotlin/team/aliens/dms/android/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel
66import kotlinx.coroutines.flow.MutableStateFlow
77import kotlinx.coroutines.flow.StateFlow
88import kotlinx.coroutines.flow.asStateFlow
9+ import kotlinx.coroutines.flow.first
910import kotlinx.coroutines.launch
1011import team.aliens.dms.android.core.jwt.JwtProvider
1112import team.aliens.dms.android.core.theme.ThemeMode
@@ -38,6 +39,7 @@ class MainActivityViewModel @Inject constructor(
3839 viewModelScope.launch {
3940 runCatchingCancellable { jwtProvider.resolveSession() }
4041 _isOnboardingCompleted .value = onboardingDataSource.getOnboardingCompleted()
42+ _themeMode .value = themeDataStoreDataSource.getThemeModeFlow().first()
4143 _isStartupResolved .value = true
4244 }
4345 viewModelScope.launch {
You can’t perform that action at this time.
0 commit comments