fix crash in instantiating fragment
This commit is contained in:
parent
39c6ae5eae
commit
514d6d4dd5
|
@ -59,7 +59,7 @@ public class TabPageAdapter extends FragmentStatePagerAdapter {
|
|||
}
|
||||
|
||||
public void registerNewFragment(PluginBase plugin) {
|
||||
if (plugin.isVisibleInTabs(plugin.getType())) {
|
||||
if (plugin.hasFragment() && plugin.isVisibleInTabs(plugin.getType())) {
|
||||
visibleFragmentList.add(plugin);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue