Commit b64defb3 by amateur

1

1 parent 0dd775d4
...@@ -35,9 +35,9 @@ public class ModulesFragmentMgr implements FragmentManager.OnBackStackChangedLis ...@@ -35,9 +35,9 @@ public class ModulesFragmentMgr implements FragmentManager.OnBackStackChangedLis
} }
public void showInitFragment(ModulesEnum[] modules) { public void showInitFragment(ModulesEnum[] modules) {
for (ModulesEnum module : modules) { // for (ModulesEnum module : modules) {
this.findNewModuleFragment(module); // this.findNewModuleFragment(module);
} // }
this.showModule(modules[0]); this.showModule(modules[0]);
} }
...@@ -80,7 +80,8 @@ public class ModulesFragmentMgr implements FragmentManager.OnBackStackChangedLis ...@@ -80,7 +80,8 @@ public class ModulesFragmentMgr implements FragmentManager.OnBackStackChangedLis
return; return;
} }
if (null == this.currentModule) { if (null == this.currentModule) {
this.showModuleFragment(this.findFragment(module)); WebViewFragment fragment = findNewModuleFragment(module);
this.showModuleFragment(fragment);
this.setCurrentModule(module); this.setCurrentModule(module);
return; return;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!