Commit 8f8a4439 by amateur

1

1 parent 9b8c0f73
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
public void onCoreInitFinished(boolean flag) {
super.setContentView(R.layout.activity_home);
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.initView();
this.initHomeModule();
}
private void initView() {
this.footerView = super.findViewById(R.id.home_footer_group);
this.footerView.setVisibility(View.VISIBLE);
......
......@@ -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();
......
......@@ -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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!