Fixed crash when you select the settings manu with a very crude hack - needs doing properly really!
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user