当遇到如下图所示的报错:
可以在以PreferenceActivity为父类的子类中重写函数isValidFragment函数:
//SDK版本19之后 ,PreferenceActivity子类需要重构这个函数 @Override protected boolean isValidFragment (String fragmentName) { return true; }
当遇到如下图所示的报错:
可以在以PreferenceActivity为父类的子类中重写函数isValidFragment函数:
//SDK版本19之后 ,PreferenceActivity子类需要重构这个函数 @Override protected boolean isValidFragment (String fragmentName) { return true; }