Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-android
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e826af36
authored
Sep 14, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
a8967bac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
app/src/main/java/com/polysoft/nafmii/webview/NativeApi.java
app/src/main/java/com/whaty/nafmii/activity/OutsideWebviewActivity.java
app/src/main/java/com/polysoft/nafmii/webview/NativeApi.java
View file @
e826af3
...
@@ -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
);
});
});
}
}
...
...
app/src/main/java/com/whaty/nafmii/activity/OutsideWebviewActivity.java
View file @
e826af3
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment