BTGO游戏盒 v3.4.80版本的 MD5 值为:000032bab1addaabfdc671ee6a7087ab
以下内容为反编译后的 v.java 源代码,内容仅作参考
package t5;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import android.widget.TextView;
import m5.q;
public class v extends v4.a {
public WebView f26090b;
public String f26091c;
public String f26092d;
public TextView f26093e;
public ImageView f26094f;
public class a implements View.OnClickListener {
public a() {
}
@Override
public void onClick(View view) {
v.this.dismiss();
}
}
public class b extends WebChromeClient {
public b() {
}
@Override
public void onReceivedTitle(WebView webView, String str) {
super.onReceivedTitle(webView, str);
if (!TextUtils.isEmpty(str) && TextUtils.isEmpty(v.this.f26092d)) {
v.this.f26092d = str;
}
v vVar = v.this;
vVar.p(vVar.f26092d);
}
}
public class c extends WebViewClient {
public c() {
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
if (!TextUtils.isEmpty(str)) {
if (str.toLowerCase().startsWith("http") || str.toLowerCase().startsWith(com.alipay.sdk.cons.b.f1878a)) {
v.this.o(str);
return true;
}
return false;
}
return false;
}
}
public v(Context context, String str, String str2) {
super(context, q.h.f24229b);
this.f26091c = str;
this.f26092d = str2;
}
public final void n() {
this.f26093e = (TextView) findViewById(q.e.V6);
this.f26094f = (ImageView) findViewById(q.e.D);
WebView webView = (WebView) findViewById(q.e.f23721aa);
this.f26090b = webView;
webView.setLayerType(0, null);
this.f26093e.setText(this.f26092d);
this.f26094f.setOnClickListener(new a());
q();
o(this.f26091c);
}
public final void o(String str) {
if (!TextUtils.isEmpty(str) && this.f26090b != null) {
this.f26091c = str;
if (str.toLowerCase().contains("youyo88.com") || this.f26091c.toLowerCase().contains("159.75.36.74:7701".toLowerCase())) {
str = this.f26091c + v4.b.g(!this.f26091c.contains("?"), v4.b.h());
}
this.f26090b.loadUrl(str);
}
}
@Override
public void onBackPressed() {
if (this.f26090b.canGoBack()) {
this.f26090b.goBack();
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(q.f.L0);
Window window = getWindow();
WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.width = m5.i.f(280.0f);
attributes.height = -2;
attributes.gravity = 17;
window.setAttributes(attributes);
n();
p(this.f26092d);
}
public void p(String str) {
this.f26092d = str;
this.f26093e.setText(str);
}
public final void q() {
this.f26090b.setWebChromeClient(new b());
this.f26090b.setWebViewClient(new c());
this.f26090b.setHorizontalScrollBarEnabled(false);
WebSettings settings = this.f26090b.getSettings();
settings.setTextZoom(80);
settings.setJavaScriptEnabled(true);
settings.setDefaultTextEncodingName("utf-8");
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
if (t4.h.d()) {
settings.setCacheMode(-1);
} else {
settings.setCacheMode(1);
}
if (Build.VERSION.SDK_INT >= 26) {
try {
settings.setSafeBrowsingEnabled(false);
} catch (Exception e10) {
e10.printStackTrace();
}
}
}
}