T.Surkis
T.Surkis
Sep 8, 2018 · 1 min read

Thank you for the excellent in-depth explanation. I have dug inside the code of the architecture components, and I still do not understand the purpose of HolderFragment.

If you look at the code, there is no case in which the Fragment or FragmentActivity instances that are passed inside will not implement ViewModelStoreOwner interface.

Thus, HolderFragment does not seem to have any purpose.

Am I missing something?

    T.Surkis

    Written by

    T.Surkis

    An Android developer by day, a technology enthusiast by night. Find me @ www.tsurkis.com/