Gabor Varadi
1 min readDec 29, 2019

--

You are missing that on process recreation, if(savedInstanceState == null){ is NEVER true. Therefore, Activity is created in that process for the first time, ViewModel is created in that process for the first time, but ViewModel will never start loading data because of this condition.

--

--

Gabor Varadi
Gabor Varadi

Written by Gabor Varadi

Android dev. Zhuinden, or EpicPandaForce @ SO. Extension function fan #Kotlin, dislikes multiple Activities/Fragment backstack.

Responses (1)