
…t data and UI state through configuration changes and no need to use onSaveInstanceState() any more. That is what many assume. But the reality is ViewModels can also be killed by OS in cases of low memory. Unlike saved instance state, ViewModels are destroyed during a system-initiated process death. This is why you should use ViewModel objects in combination with onSaveInstanceState() (or some other disk persistence), stashing identifiers in savedInstanceState to help view models rel…
… like without having to ever change code in the adapt… like without having to ever change code in the adapter. We are already very close to getting the adapter to that state but before we can, we need to set up a few other things.