<commit_before>package com.ehi.component.help.view;

import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.webkit.WebView;

import com.ehi.base.ModuleConfig;
import com.ehi.component.anno.EHiRouterAnno;
import com.ehi.component.help.R;

@EHiRouterAnno(
        host = ModuleConfig.Help.NAME,
        value = ModuleConfig.Help.WEB,
        desc = "项目的网页展示界面"
)
public class WebAct extends AppCompatActivity {

    @NonNull
    private WebView wv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help_web_act);
        wv = findViewById(R.id.wv);
        wv.getSettings().setJavaScriptEnabled(true);
        String url = getIntent().getStringExtra("data");
        if (TextUtils.isEmpty(url)) {
            wv.loadUrl("file:///android_asset/404.html");
        }else {
            wv.loadUrl(url);
        }
    }

}
<commit_msg>webview 在 app 内加载问题解决<commit_after>package com.ehi.component.help.view;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.ehi.base.ModuleConfig;
import com.ehi.component.anno.EHiRouterAnno;
import com.ehi.component.help.R;

@EHiRouterAnno(
        host = ModuleConfig.Help.NAME,
        value = ModuleConfig.Help.WEB,
        desc = "项目的网页展示界面"
)
public class WebAct extends AppCompatActivity {

    @NonNull
    private WebView wv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help_web_act);
        wv = findViewById(R.id.wv);
        wv.getSettings().setJavaScriptEnabled(true);
        wv.setWebViewClient(new WebViewClient(){
        });
        String url = getIntent().getStringExtra("data");
        if (TextUtils.isEmpty(url)) {
            wv.loadUrl("file:///android_asset/404.html");
        }else {
            wv.loadUrl(url);
        }
    }

}

{'fraction_non_alphanumeric': 0.11422018348623854, 'fraction_numerical': 0.003669724770642202, 'mean_word_length': 3.1150943396226416, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '257060', 'n_tokens_mistral': 708, 'n_tokens_neox': 703, 'n_words': 111}