Commit c7a6c26e by amateur

1

1 parent 0df67da4
......@@ -100,26 +100,8 @@ public class ModuleUrlHandle {
@Override
public void loadUrl(IWebview webview) {
Intent intent = activity.getIntent();
String url = intent.getStringExtra(module.name);
if (!TextUtils.isEmpty(url)) {
if (module == ModulesEnum.MEMBER) {
} else if (module == ModulesEnum.MY) {
} else {
webview.loadUrl(url);
}
return;
}
if (module == ModulesEnum.HOME) {
webview.loadUrl(Constants.MODULE_URL_HOME);
} else if (ModulesEnum.LEARN == module) {
webview.loadUrl(Constants.MODULE_URL_LEARN);
} else if (ModulesEnum.MEMBER == module) {
webview.loadUrl(Constants.MODULE_URL_MEMBER);
} else if (ModulesEnum.MY == module) {
webview.loadUrl(Constants.MODULE_URL_MY);
}
// Intent intent = activity.getIntent();
// String url = intent.getStringExtra(module.name);
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!