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 8f8a4439
authored
Aug 30, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
9b8c0f73
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
app/src/main/java/com/whaty/nafmii/activity/HomeActivity.java
app/src/main/java/com/whaty/nafmii/activity/OutsideWebviewActivity.java
app/src/main/java/com/whaty/nafmii/activity/WebviewActivity.java
app/src/main/java/com/whaty/nafmii/activity/HomeActivity.java
View file @
8f8a443
package
com
.
whaty
.
nafmii
.
activity
;
import
android.annotation.SuppressLint
;
import
android.os.Bundle
;
import
android.view.KeyEvent
;
import
android.view.View
;
import
android.widget.RadioButton
;
...
...
@@ -23,14 +24,14 @@ public class HomeActivity extends WebviewActivity implements View.OnClickListene
private
HashMap
<
ModulesEnum
,
RadioButton
>
moduleViewsMap
;
private
View
footerView
;
@Override
p
ublic
void
onCoreInitFinished
(
boolean
flag
)
{
super
.
setContentView
(
R
.
layout
.
activity_hom
e
);
p
rotected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceStat
e
);
this
.
initView
();
this
.
initHomeModule
();
}
private
void
initView
()
{
this
.
footerView
=
super
.
findViewById
(
R
.
id
.
home_footer_group
);
this
.
footerView
.
setVisibility
(
View
.
VISIBLE
);
...
...
app/src/main/java/com/whaty/nafmii/activity/OutsideWebviewActivity.java
View file @
8f8a443
...
...
@@ -29,10 +29,7 @@ public class OutsideWebviewActivity extends WebviewActivity {
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
}
@Override
public
void
onCoreInitFinished
(
boolean
flag
)
{
String
data
=
super
.
getIntent
().
getStringExtra
(
"data"
);
this
.
mBean
=
JSON
.
parseObject
(
data
,
OpenUrlBean
.
class
);
if
(
null
==
this
.
mBean
)
{
...
...
@@ -43,7 +40,6 @@ public class OutsideWebviewActivity extends WebviewActivity {
this
.
initView
();
}
private
void
initView
()
{
this
.
initNavTitle
();
...
...
app/src/main/java/com/whaty/nafmii/activity/WebviewActivity.java
View file @
8f8a443
...
...
@@ -4,12 +4,13 @@ import android.os.Bundle;
import
com.polysoft.nafmii.webview.X5Core
;
public
abstract
class
WebviewActivity
extends
BaseActivity
implements
X5Core
.
InitCallback
{
public
abstract
class
WebviewActivity
extends
BaseActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
X5Core
.
setInitCallback
(
this
);
X5Core
.
setInitCallback
(
flag
->
{
});
}
}
\ No newline at end of file
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