title: PreferenceActivity: getFragmentManager() has been deprecated
body: <p>When testing a <a href="https://developer.android.com/reference/android/preference/PreferenceActivity" rel="nofollow noreferrer">android.preference.PreferenceActivity</a>, I get the following warning:</p>
  
  <blockquote>
    <p>warning: [deprecation] getFragmentManager() in Activity has been deprecated</p>
  </blockquote>
  
  <p>That is how I obtain a handle to the current <code>PreferenceFragment</code>:</p>
  
  <pre><code>FragmentManager fm = this.mActivity.getFragmentManager();
  this.currentFragment = (PreferenceFragment) fm.getFragments().get(1);
  </code></pre>
  
  <p>Using <code>FragmentActivity.getSupportFragmentManager()</code> is obviously not an option.</p>
  
  <p>I've found <a href="https://developer.android.com/reference/android/support/v7/preference/PreferenceFragmentCompat" rel="nofollow noreferrer">PreferenceFragmentCompat</a>, which would replace the deprecated <code>PreferenceFragment</code>.</p>
  
  <p>But is there any <code>androidx</code> replacement for the <code>PreferenceActivity</code>?</p>