Commit e826af36 by amateur

1

1 parent a8967bac
...@@ -58,6 +58,7 @@ public class NativeApi { ...@@ -58,6 +58,7 @@ public class NativeApi {
dataMap.put("versionCode", packageInfo.versionCode); dataMap.put("versionCode", packageInfo.versionCode);
dataMap.put("versionName", packageInfo.versionName); dataMap.put("versionName", packageInfo.versionName);
dataMap.put("statusBarHeight", StatusBarUtils.getStatusBarHeight(mActivity)); dataMap.put("statusBarHeight", StatusBarUtils.getStatusBarHeight(mActivity));
dataMap.put("module", handler.getFragment().getTag());
js.success(dataMap); js.success(dataMap);
}); });
} }
......
...@@ -53,7 +53,7 @@ public class OutsideWebviewActivity extends WebviewActivity { ...@@ -53,7 +53,7 @@ public class OutsideWebviewActivity extends WebviewActivity {
FragmentManager manager = getSupportFragmentManager(); FragmentManager manager = getSupportFragmentManager();
this.mFragment = WebViewFragment.newInstance(this.getUrl()); this.mFragment = WebViewFragment.newInstance(this.getUrl());
FragmentTransaction transaction = manager.beginTransaction(); FragmentTransaction transaction = manager.beginTransaction();
transaction.replace(containerId, this.mFragment, "outside_webview").commitNow(); transaction.replace(containerId, this.mFragment, "outside").commitNow();
} }
private void initNavTitle() { private void initNavTitle() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!