I noticed the ThemeSettingDialogFragment does not use the viewLifecycleOwner, but the reference to itself.
The recommendations show that we should use the Fragment viewLifecycleOwner, but this will never be initialized because of how the DialogFragment is created, through onCreateDialog() method.
I do not know if this is a bug in the Fragments or in the Lifecycle dependency, but I failed to update this to work correctly.
I noticed the
ThemeSettingDialogFragment
does not use theviewLifecycleOwner
, but the reference to itself. The recommendations show that we should use the FragmentviewLifecycleOwner
, but this will never be initialized because of how the DialogFragment is created, throughonCreateDialog()
method.I do not know if this is a bug in the Fragments or in the Lifecycle dependency, but I failed to update this to work correctly.