Assigned
Status Update
Comments
al...@b4workapp.com <al...@b4workapp.com> #2
1.0.1 is the api version
al...@b4workapp.com <al...@b4workapp.com> #3
Code:
installSplashScreen().apply {
setKeepOnScreenCondition {
viewModel.isLoading.value
}
}
in viewmodel:
private val _isLoading = MutableStateFlow(true)
val isLoading = _isLoading.asStateFlow()
init {
viewModelScope.launch {
delay(3000)
_isLoading.value = false
}
}
installSplashScreen().apply {
setKeepOnScreenCondition {
viewModel.isLoading.value
}
}
in viewmodel:
private val _isLoading = MutableStateFlow(true)
val isLoading = _isLoading.asStateFlow()
init {
viewModelScope.launch {
delay(3000)
_isLoading.value = false
}
}
Description
Version used: 34
Devices/Android versions reproduced on: Pixel 8 34, Pixel 8 Pro 34, Pixel 6 31 or Pixel 7 33
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
Whereas mobiles under 34 the splash is blocked X milliseconds using a delay inside the viewmodel init method, in android 34 the splash screen is shown fast and the delay is shown a black screen
I attach screenshot in android 34 (black after splash appears and disappears at 300 ms moreless)
Screenshot with the delay under v34