Commit 8f8a4439 by amateur

1

1 parent 9b8c0f73
package com.whaty.nafmii.activity; package com.whaty.nafmii.activity;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.KeyEvent; import android.view.KeyEvent;
import android.view.View; import android.view.View;
import android.widget.RadioButton; import android.widget.RadioButton;
...@@ -23,14 +24,14 @@ public class HomeActivity extends WebviewActivity implements View.OnClickListene ...@@ -23,14 +24,14 @@ public class HomeActivity extends WebviewActivity implements View.OnClickListene
private HashMap<ModulesEnum, RadioButton> moduleViewsMap; private HashMap<ModulesEnum, RadioButton> moduleViewsMap;
private View footerView; private View footerView;
@Override @Override
public void onCoreInitFinished(boolean flag) { protected void onCreate(Bundle savedInstanceState) {
super.setContentView(R.layout.activity_home); super.onCreate(savedInstanceState);
this.initView(); this.initView();
this.initHomeModule(); this.initHomeModule();
} }
private void initView() { private void initView() {
this.footerView = super.findViewById(R.id.home_footer_group); this.footerView = super.findViewById(R.id.home_footer_group);
this.footerView.setVisibility(View.VISIBLE); this.footerView.setVisibility(View.VISIBLE);
......
...@@ -29,10 +29,7 @@ public class OutsideWebviewActivity extends WebviewActivity { ...@@ -29,10 +29,7 @@ public class OutsideWebviewActivity extends WebviewActivity {
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
}
@Override
public void onCoreInitFinished(boolean flag) {
String data = super.getIntent().getStringExtra("data"); String data = super.getIntent().getStringExtra("data");
this.mBean = JSON.parseObject(data, OpenUrlBean.class); this.mBean = JSON.parseObject(data, OpenUrlBean.class);
if (null == this.mBean) { if (null == this.mBean) {
...@@ -43,7 +40,6 @@ public class OutsideWebviewActivity extends WebviewActivity { ...@@ -43,7 +40,6 @@ public class OutsideWebviewActivity extends WebviewActivity {
this.initView(); this.initView();
} }
private void initView() { private void initView() {
this.initNavTitle(); this.initNavTitle();
......
...@@ -4,12 +4,13 @@ import android.os.Bundle; ...@@ -4,12 +4,13 @@ import android.os.Bundle;
import com.polysoft.nafmii.webview.X5Core; import com.polysoft.nafmii.webview.X5Core;
public abstract class WebviewActivity extends BaseActivity implements X5Core.InitCallback { public abstract class WebviewActivity extends BaseActivity{
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
X5Core.setInitCallback(this); X5Core.setInitCallback(flag -> {
});
} }
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!