Closed juergenzimmermann closed 6 years ago
Please file a feature request on b.android.com/new. This isn't a problem with core-ktx, but that the preference androidx library doesn't use androidx fragments.
@juergenzimmermann You need to extend androidx.preference.PreferenceFragmentCompat
.
Here is an issue that requests to deprecate the androidx PreferenceFrament classes that extend platform fragments https://issuetracker.google.com/issues/79405956
When you have e.g.
then you cannot implement in a Fragment class (derived from androidx.fragment.app.Fragment)
because
replace
expects androidx.fragment.app.Fragment. However, the inheritance hierarchy is Prefs -> androidx.preference.PreferenceFragment -> android.app.Fragment