I am trying to load a PreferenceFragment (PreferenceFragmentCompat) in an application running on API 16, but every time I attempt to load the fragment I get the following error:
I managed to fix it. The problem was my activity that was loading the fragment didn't have the theme set.
<activity android:name=".controllers.MainActivity" android:theme="@style/AppTheme.Base" />