fix crash in instantiating fragment

This commit is contained in:
Milos Kozak 2017-06-30 09:46:56 +02:00
parent 39c6ae5eae
commit 514d6d4dd5

View file

@ -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();
}