You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class InsuranceOnboardingWorkflowActivityViewModel(
stateHandle: SavedStateHandle,
internal val logRepository: LogRepository,
internal val insuranceRepository: InsuranceRepository,
internal val premiumRepository: PremiumRepository,
internal val userRepository: UserRepository
) : LRViewModel() {
var source: AppSource = AppSource.valueOf(stateHandle.get<String>(EXTRA_SOURCE)!!)
To Reproduce
Steps to reproduce the behavior:
from AS, run app and start relative activity
put app in background
in AS, into logcat tab, click on Terminate App button (to simulate system-initiated process death)
onto relative device, click on app "window" in "app carrousel" to "restore" app
Expected behavior
On app "restoration", viewmodel SavedStateHandle attribute should not be null
Koin project used and used version (please complete the following information):
koin-core version 3.1.2
androidx.lifecycle:lifecycle-viewmodel-savedstate version 2.4.1
The text was updated successfully, but these errors were encountered:
The VIewModel API has been revamped with the latest lifecycle library in 2.5.1. This implies that SavedStateHandle is created with the right extras (thanks to the lifecycle library update in 2.5.1). You can have a look to the full PR #1459
Describe the bug
StateViewModel SavedStateHandle attribute is always null after a system-initiated process death
To Reproduce
Steps to reproduce the behavior:
Expected behavior
On app "restoration", viewmodel SavedStateHandle attribute should not be null
Koin project used and used version (please complete the following information):
koin-core version 3.1.2
androidx.lifecycle:lifecycle-viewmodel-savedstate version 2.4.1
The text was updated successfully, but these errors were encountered: