Fixed crash when you select the settings manu with a very crude hack - needs doing properly really!

This commit is contained in:
Graham Jones
2019-01-06 20:46:31 +00:00
parent c73898bc31
commit a21f009f9e

View File

@@ -157,8 +157,19 @@ public class PrefActivity extends PreferenceActivity implements SharedPreference
} }
/** /**
* This fragment shows the preferences for the first header. * FIXME - this just returns true so it is the same as for older versions of Android.
* We should really check that the fragmentName is one of the fragments defined below.
* @param fragmentName
* @return
*/ */
@Override
protected boolean isValidFragment(String fragmentName) {
return true;
}
/**
* This fragment shows the preferences for the first header.
*/
public static class GeneralPrefsFragment extends PreferenceFragment { public static class GeneralPrefsFragment extends PreferenceFragment {
@Override @Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {