Hey, is there a way I can make a PreferenceFragment extend LifecycleOwner? It wants me to implement getLifecycle but I’ve no idea how I would do that and I’m struggling to find anything relevant on google.
stackoverflow 1
t
trevjones
08/09/2018, 3:02 AM
PreferenceFragment is a subclass of the platform fragment class which is now deprecated. You want to use PreferenceFragmentCompat from
Sweet, thanks. Is there somewhere in the documentation I should be looking for it to tell me that?
t
trevjones
08/09/2018, 3:06 AM
I am not sure. I usually just figure if there is something in the platform sources that we probably shouldn't use it and that there probably exists some support lib version that makes it actually usable