Gabor Varadi
Feb 13, 2021

--

Theoretically, if viewLifecycleOwnerLiveData is always non-null, then this would also work, yes. The only difference is that this requires the binding to be retrieved in `onViewCreated` to have it be created, but you are most likely doing that anyway.

--

--

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)