PreferenceFragments not in the same FragmentManager?
问题 We have a PreferenceFragmentCompat , and with a tap on a preference, we want to switch from the current PreferenceFragmentCompat to a new PreferenceFragmentCompat . (To have certain settings on a new screen). However, regardless of what we have tried, we keep running into the following error: Fragment declared target fragment that does not belong to this FragmentManager MainActivity.kt class MainActivity : AppCompatActivity(), ActivityCompat.OnRequestPermissionsResultCallback,