VMOS Pro v2.9.9版本的 MD5 值为:ed5c219465efa7edf5a361da4f3029fb
以下内容为反编译后的 BbsWebViewActivity.java 源代码,内容仅作参考
package com.vmos.pro.modules.bbs;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.AnimationDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.DownloadListener;
import android.webkit.JavascriptInterface;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import com.luck.picture.lib.basic.PictureSelector;
import com.luck.picture.lib.config.SelectMimeType;
import com.luck.picture.lib.entity.LocalMedia;
import com.luck.picture.lib.interfaces.OnResultCallbackListener;
import com.tencent.mars.xlog.Log;
import com.vmos.commonuilibrary.C1417;
import com.vmos.commonuilibrary.View$OnClickListenerC1406;
import com.vmos.pro.R;
import com.vmos.pro.account.AccountHelper;
import com.vmos.pro.activities.login.LoginConstants;
import com.vmos.pro.activities.login.LoginProcedureController;
import com.vmos.pro.activities.login.entity.LoginEntranceArg;
import com.vmos.pro.activities.renderer.PagePermissionHelper;
import com.vmos.pro.activities.updateuserinfo.UpdateNameActivity;
import com.vmos.pro.bean.UserBean;
import com.vmos.pro.modules.BaseActivity;
import com.vmos.pro.modules.bbs.BbsWebViewActivity;
import com.vmos.pro.modules.bindphone.BindPhoneInputActivity;
import com.vmos.pro.modules.mydownload.MyDownloadActivity2;
import defpackage.tq0;
import java.net.URLDecoder;
import java.util.ArrayList;
public class BbsWebViewActivity extends BaseActivity implements u02 {
public static final int f10281 = 999;
public static final int f10282 = 998;
public static final String f10283 = "intent.key.url";
public static final String f10284 = "intent.key.from.url";
public static final long f10285 = 1000;
public static final String f10286 = "BbsWebViewActivity";
public tq0 f10288;
public WebView f10289;
public ImageView f10290;
public TextView f10291;
public AnimationDrawable f10292;
public boolean f10293;
public RelativeLayout f10294;
public ValueCallback<Uri[]> f10295;
public String f10296;
public String f10297;
public String f10298;
public String f10299;
public boolean f10300;
public boolean f10302;
public String f10303;
public String f10304;
public Handler f10287 = new Handler();
public kq5 f10301 = null;
public String f10305 = "";
public class C1737 implements tq0.InterfaceC5613 {
public final String f10309;
public C1737(String str) {
this.f10309 = str;
}
@Override
public void mo13370(tq0 tq0Var) {
s83 s83Var = new s83();
BbsWebViewActivity bbsWebViewActivity = BbsWebViewActivity.this;
s83Var.f33530 = bbsWebViewActivity.f10299;
s83Var.f33529 = bbsWebViewActivity.f10298;
s83Var.f33538 = bbsWebViewActivity.f10305;
s83Var.f33523 = this.f10309;
s83Var.f33539 = bbsWebViewActivity.f10297;
x65.m49793().m49801(s83Var);
C1417.m8789((FrameLayout) BbsWebViewActivity.this.getWindow().getDecorView(), BbsWebViewActivity.this.getString(R.string.my_downloaded_notify)).m8791();
tq0Var.dismiss();
}
@Override
public void mo13371(tq0 tq0Var) {
tq0Var.dismiss();
}
}
public class C1738 {
public Activity f10311;
public C1738(Activity activity) {
this.f10311 = activity;
}
@JavascriptInterface
public String getUserInfo() {
return BbsWebViewActivity.this.m13387();
}
}
public class View$OnClickListenerC1739 implements View.OnClickListener {
public View$OnClickListenerC1739() {
}
@Override
public void onClick(View view) {
Intent intent = new Intent(BbsWebViewActivity.this, MyDownloadActivity2.class);
intent.putExtra(MyDownloadActivity2.f11030, 2);
BbsWebViewActivity.this.startActivity(intent);
}
}
public class C1740 extends WebChromeClient {
public class C1741 implements OnResultCallbackListener<LocalMedia> {
public C1741() {
}
@Override
public void onCancel() {
}
@Override
public void onResult(ArrayList<LocalMedia> arrayList) {
String str;
if (C7397.m55533(arrayList)) {
str = "";
} else {
str = arrayList.get(0).getCompressPath();
if (TextUtils.isEmpty(str)) {
str = arrayList.get(0).getPath();
}
}
Uri[] uriArr = {Uri.parse("file:" + str)};
ValueCallback<Uri[]> valueCallback = BbsWebViewActivity.this.f10295;
if (valueCallback != null) {
valueCallback.onReceiveValue(uriArr);
BbsWebViewActivity.this.f10295 = null;
}
}
}
public C1740() {
}
@Override
public void onProgressChanged(WebView webView, int i) {
}
@Override
public void onReceivedTitle(WebView webView, String str) {
BbsWebViewActivity bbsWebViewActivity = BbsWebViewActivity.this;
bbsWebViewActivity.f10299 = str;
bbsWebViewActivity.f10291.setText(str);
}
@Override
public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> valueCallback, WebChromeClient.FileChooserParams fileChooserParams) {
Log.i(BbsWebViewActivity.f10286, "onShowFileChooser");
String[] acceptTypes = fileChooserParams.getAcceptTypes();
if (acceptTypes != null) {
for (String str : acceptTypes) {
Log.i(BbsWebViewActivity.f10286, "type:" + str);
}
}
BbsWebViewActivity bbsWebViewActivity = BbsWebViewActivity.this;
bbsWebViewActivity.f10295 = valueCallback;
PictureSelector.create((AppCompatActivity) bbsWebViewActivity).openGallery(SelectMimeType.ofImage()).setSelectionMode(1).setImageSpanCount(4).setImageEngine(wn1.m49076()).setCropEngine(new i42()).setCompressEngine(new h42()).forResult(new C1741());
return true;
}
}
public class C1742 implements DownloadListener {
public C1742() {
}
@Override
public void onDownloadStart(String str, String str2, String str3, String str4, long j) {
BbsWebViewActivity bbsWebViewActivity = BbsWebViewActivity.this;
bbsWebViewActivity.f10303 = str;
bbsWebViewActivity.f10304 = str3;
if (bbsWebViewActivity.hasPermissionStorage()) {
BbsWebViewActivity.this.m13395(str, str3);
}
}
}
public void m13381() {
this.f10289.scrollTo(0, Integer.MAX_VALUE);
}
public void m13382() {
this.f10289.loadUrl(this.f10296);
this.f10289.postDelayed(new Runnable() {
@Override
public final void run() {
BbsWebViewActivity.this.m13381();
}
}, 500L);
}
public void m13383(View view) {
finish();
}
public void m13384(View$OnClickListenerC1406 view$OnClickListenerC1406) {
if (!ActivityCompat.shouldShowRequestPermissionRationale(this, "android.permission.WRITE_EXTERNAL_STORAGE")) {
new PagePermissionHelper(this).jumpPermissionPage();
} else {
ActivityCompat.requestPermissions(this, new String[]{"android.permission.WRITE_EXTERNAL_STORAGE"}, 110);
}
view$OnClickListenerC1406.m8768();
}
public final void handleAfterLoginSuccess(LoginEntranceArg loginEntranceArg) {
UserBean userConf;
if (loginEntranceArg == null || !loginEntranceArg.getEntrancePage().equals(LoginEntranceArg.PAGE_BBS_WEB_VIEW) || !loginEntranceArg.getLoginCause().equals(LoginEntranceArg.CAUSE_BBS_WEB_VIEW_NEED_LOGIN) || (userConf = AccountHelper.get().getUserConf()) == null || AccountHelper.get().notLogin()) {
return;
}
if (TextUtils.isEmpty(userConf.getMobilePhone())) {
m13386();
} else if (!TextUtils.isEmpty(userConf.getNickName()) && !TextUtils.equals(getString(R.string.default_user_name), userConf.getNickName())) {
m13391();
} else {
m13394();
}
}
public boolean hasPermissionStorage() {
boolean z = ContextCompat.checkSelfPermission(this, "android.permission.WRITE_EXTERNAL_STORAGE") == 0;
if (!z) {
if (!ActivityCompat.shouldShowRequestPermissionRationale(this, "android.permission.WRITE_EXTERNAL_STORAGE")) {
startDialogStoragePermission();
} else {
ActivityCompat.requestPermissions(this, new String[]{"android.permission.WRITE_EXTERNAL_STORAGE"}, 110);
}
}
return z;
}
@Override
public void onActivityResult(int i, int i2, @Nullable Intent intent) {
super.onActivityResult(i, i2, intent);
if (i2 == -1 && (i == 999 || i == 998)) {
m13391();
}
ValueCallback<Uri[]> valueCallback = this.f10295;
if (valueCallback != null) {
valueCallback.onReceiveValue(null);
this.f10295 = null;
}
}
@Override
public void onCreate(@Nullable Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_webview);
registerGlobalEventBus();
this.f10302 = false;
this.f10288 = new tq0(this);
String stringExtra = getIntent().getStringExtra("intent.key.url");
this.f10296 = stringExtra;
this.f10298 = stringExtra;
this.f10297 = getIntent().getStringExtra("intent.key.from.url");
if (TextUtils.isEmpty(this.f10296)) {
finish();
return;
}
this.f10294 = (RelativeLayout) findViewById(R.id.rl_root);
this.f10289 = (WebView) findViewById(R.id.wv_commonWebView);
WebView.setWebContentsDebuggingEnabled(true);
C7173.m54808(this, this.f10289);
ImageView imageView = (ImageView) findViewById(R.id.iv_download);
this.f10290 = imageView;
this.f10292 = (AnimationDrawable) imageView.getDrawable();
this.f10291 = (TextView) findViewById(R.id.tv_wv_title);
this.f10290.setOnClickListener(new View$OnClickListenerC1739());
View findViewById = findViewById(R.id.iv_back);
WebSettings settings = this.f10289.getSettings();
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
settings.setJavaScriptEnabled(true);
settings.setSaveFormData(false);
settings.setSupportZoom(false);
settings.setAllowFileAccess(true);
settings.setAllowContentAccess(true);
settings.setDomStorageEnabled(true);
this.f10289.addJavascriptInterface(new C1738(this), "vmos");
settings.setMixedContentMode(2);
this.f10289.setWebChromeClient(new C1740());
this.f10289.setDownloadListener(new C1742());
this.f10289.setWebViewClient(new C1735());
findViewById.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
BbsWebViewActivity.this.m13383(view);
}
});
mo13334();
}
@Override
public void onDestroy() {
super.onDestroy();
kq5 kq5Var = this.f10301;
if (kq5Var != null) {
kq5Var.mo28898();
}
}
@Override
public void onEventMessageReceive(f51 f51Var) {
if (f51Var.m20116().equals(LoginConstants.LOGIN_SUCCESS_ACTION)) {
handleAfterLoginSuccess((LoginEntranceArg) f51Var.m20089(LoginConstants.LOGIN_ENTRANCE_ARG_KEY));
}
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
if (i == 4 && this.f10289.canGoBack()) {
this.f10289.goBack();
return true;
}
return super.onKeyDown(i, keyEvent);
}
@Override
public void onRequestPermissionsResult(int i, @NonNull String[] strArr, @NonNull int[] iArr) {
super.onRequestPermissionsResult(i, strArr, iArr);
if (i == 110) {
if (ContextCompat.checkSelfPermission(this, "android.permission.WRITE_EXTERNAL_STORAGE") == 0) {
m13395(this.f10303, this.f10304);
}
}
}
@Override
public void onWindowFocusChanged(boolean z) {
super.onWindowFocusChanged(z);
if (z) {
ey4.m19871(getWindow(), true, false);
}
}
public final void registerGlobalEventBus() {
this.f10301 = lo1.m30077().m55899(this).mo28899(LoginConstants.LOGIN_SUCCESS_ACTION).mo28900();
}
public final void startDialogStoragePermission() {
String string = getString(R.string.file_permission_name);
View$OnClickListenerC1406.m8743(this.f10289).m8756(R.mipmap.img_common_dialog_vm).m8762(ij5.m25090(String.format(getString(R.string.file_permission), string), string, bm4.m3643(R.color.common_pro_blue)), 14).m8752(getString(R.string.common_go_auth), new View$OnClickListenerC1406.InterfaceC1410() {
@Override
public final void onPositiveBtnClick(View$OnClickListenerC1406 view$OnClickListenerC1406) {
BbsWebViewActivity.this.m13384(view$OnClickListenerC1406);
}
}).m8757();
}
public void m13386() {
Intent intent = new Intent(this, BindPhoneInputActivity.class);
intent.putExtra("action.type", 3);
startActivityForResult(intent, 999);
}
public String m13387() {
UserBean userConf = AccountHelper.get().getUserConf();
Log.i(f10286, "getUserInfo userBean:" + userConf);
if (!AccountHelper.get().notLogin()) {
if (TextUtils.isEmpty(userConf.getMobilePhone())) {
this.f10287.post(new Runnable() {
@Override
public final void run() {
BbsWebViewActivity.this.m13386();
}
});
return "";
} else if (!TextUtils.isEmpty(userConf.getNickName()) && !TextUtils.equals(getString(R.string.default_user_name), userConf.getNickName())) {
return userConf.getAccessToken();
} else {
this.f10287.post(new Runnable() {
@Override
public final void run() {
BbsWebViewActivity.this.m13394();
}
});
return "";
}
}
this.f10287.post(new Runnable() {
@Override
public final void run() {
BbsWebViewActivity.this.m13380();
}
});
return "";
}
public void m13388() {
this.f10287.postDelayed(new Runnable() {
@Override
public final void run() {
BbsWebViewActivity.this.m13382();
}
}, 1000L);
}
public void m13380() {
new LoginProcedureController(this).doLogin(new LoginEntranceArg(LoginEntranceArg.CAUSE_BBS_WEB_VIEW_NEED_LOGIN, LoginEntranceArg.PAGE_BBS_WEB_VIEW, null));
}
public void m13390() {
String str;
if (TextUtils.equals(this.f10297, "")) {
str = "";
} else if (TextUtils.equals(this.f10297, "")) {
str = "";
} else {
str = TextUtils.equals(this.f10297, "") ? "" : "";
}
this.f10289.loadUrl(str);
}
public void m13391() {
if (BbsFragment.m13351(this.f10296)) {
m13390();
} else {
m13393();
}
}
public boolean m13392() {
return TextUtils.equals("Xiaomi", Build.BRAND);
}
@Override
public void mo13334() {
super.mo13334();
if (this.f10302) {
return;
}
this.f10289.loadUrl(this.f10296);
}
@Override
public int mo13335() {
return R.id.ll_content;
}
public void m13393() {
Log.i(f10286, "postLogin");
this.f10289.loadUrl("");
}
public void m13394() {
Intent intent = new Intent(this, UpdateNameActivity.class);
intent.putExtra(UpdateNameActivity.KEY_INTENT_FROM_PAGE, 1);
startActivityForResult(intent, 998);
}
public void m13395(String str, String str2) {
if (TextUtils.isEmpty(str)) {
return;
}
this.f10305 = "";
if (!TextUtils.isEmpty(str2)) {
String replaceFirst = str2.replaceFirst("(?i)^.*filename=\"?([^\"]+)\"?.*$", "$1");
this.f10305 = replaceFirst;
if (!TextUtils.isEmpty(replaceFirst)) {
try {
String trim = URLDecoder.decode(this.f10305, "utf-8").trim();
this.f10305 = trim;
if (trim.indexOf(";") > 0) {
String str3 = this.f10305;
this.f10305 = str3.substring(0, str3.indexOf(";"));
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
if (TextUtils.isEmpty(this.f10305)) {
this.f10305 = str.substring(str.lastIndexOf("/") + 1);
}
s83 s83Var = new s83();
s83Var.f33530 = this.f10299;
s83Var.f33529 = this.f10298;
s83Var.f33538 = this.f10305;
s83Var.f33523 = str;
s83Var.f33539 = this.f10297;
if (x65.m49793().m49799(s83Var)) {
C1417.m8789((FrameLayout) getWindow().getDecorView(), getString(R.string.my_downloaded_notify)).m8791();
this.f10292.stop();
this.f10292.start();
} else if (this.f10288.isShowing()) {
} else {
this.f10288.m43544(new C1737(str));
this.f10288.show();
}
}
public class C1735 extends WebViewClient {
public class RunnableC1736 implements Runnable {
public RunnableC1736() {
}
@Override
public void run() {
BbsWebViewActivity.this.hideLoading();
}
}
public C1735() {
}
public void m13396() {
C1417.m8789((FrameLayout) BbsWebViewActivity.this.getWindow().getDecorView(), BbsWebViewActivity.this.getString(R.string.download_state_net_error)).m8791();
}
@Override
public void onPageFinished(WebView webView, String str) {
Log.i(BbsWebViewActivity.f10286, "onPageFinished:" + str);
super.onPageFinished(webView, str);
BbsWebViewActivity bbsWebViewActivity = BbsWebViewActivity.this;
if (bbsWebViewActivity.f10293) {
bbsWebViewActivity.m13344();
} else {
bbsWebViewActivity.f10302 = true;
if (TextUtils.equals(bbsWebViewActivity.f10296, str)) {
BbsWebViewActivity.this.f10289.clearHistory();
BbsWebViewActivity bbsWebViewActivity2 = BbsWebViewActivity.this;
if (bbsWebViewActivity2.f10300) {
bbsWebViewActivity2.m13390();
BbsWebViewActivity.this.f10300 = false;
}
}
webView.loadUrl("javascript:(function() { var body = document.getElementsByTagName('body');\nvar cl = document.getElementsByClassName('cl'); \nvar hot_group = document.getElementsByClassName('hot-group');\nvar forumListTab = document.getElementsByClassName('forumListTab');\nvar container = document.getElementsByClassName('container');\nvar bottom_tab = document.getElementsByClassName('bottom-tab');\nvar post_from = document.getElementsByClassName('post_from');\nvar btm = document.getElementById('pmsubmit_btn');\nvar cl = document.getElementsByClassName('cl');\nvar reple_tit = document.getElementsByClassName('reple_tit');\ntry{\nbody[0].removeChild(cl[0]);\n}catch(err){\n}\ntry{\nbody[0].removeChild(hot_group[0]);\n}catch(err){\n}\ntry{\nbody[0].removeChild(forumListTab[0]);\n}catch(err){\n}\ntry{\nif(reple_tit.length>1){reple_tit[1].parentElement.removeChild(reple_tit[1]);}else{reple_tit[0].parentElement.removeChild(reple_tit[0]);}\n}catch(err){\n}\ntry{\nbody[0].removeChild(bottom_tab[0]);\n}catch(err){ \n}})()");
webView.loadUrl("javascript:(function() {try{\n var oMeta = document.createElement('meta');\noMeta.httpEquiv = 'Content-Security-Policy';\noMeta.content = 'upgrade-insecure-requests';\ndocument.getElementsByTagName('head')[0].appendChild(oMeta);\n}catch(err){} })()");
if (BbsWebViewActivity.this.m13392()) {
webView.loadUrl("javascript:(function() {var metaList = document.getElementsByTagName('meta');\n\ntry{\nfor (var i = 0; i < metaList.length; i++) {\n if (metaList[i].name == 'viewport') {metaList[i].content = 'width=device-width, initial-scale=0.5, user-scalable=no, minimum-scale=0.5, maximum-scale=0.5';}}\n}catch(err){}})()");
}
BbsWebViewActivity.this.m13339();
}
BbsWebViewActivity.this.hideLoading();
}
@Override
public void onPageStarted(WebView webView, String str, Bitmap bitmap) {
super.onPageStarted(webView, str, bitmap);
BbsWebViewActivity.this.f10293 = false;
Log.i(BbsWebViewActivity.f10286, "onPageStarted:" + str);
BbsWebViewActivity bbsWebViewActivity = BbsWebViewActivity.this;
if (bbsWebViewActivity.f10302) {
return;
}
bbsWebViewActivity.m13342();
BbsWebViewActivity.this.f10287.postDelayed(new RunnableC1736(), 10000L);
}
@Override
public void onReceivedError(WebView webView, int i, String str, String str2) {
super.onReceivedError(webView, i, str, str2);
Log.i(BbsWebViewActivity.f10286, "onReceivedError: s:" + str);
try {
if (TextUtils.equals(str, BbsWebViewActivity.this.f10296) || TextUtils.equals(BbsWebViewActivity.this.f10296, str2)) {
BbsWebViewActivity.this.f10293 = true;
}
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void onReceivedHttpError(WebView webView, WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
super.onReceivedHttpError(webView, webResourceRequest, webResourceResponse);
Log.i(BbsWebViewActivity.f10286, "onReceivedHttpError: s:");
try {
if (TextUtils.equals(webResourceRequest.getUrl().toString(), BbsWebViewActivity.this.f10296)) {
BbsWebViewActivity.this.f10293 = true;
}
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
@Nullable
public WebResourceResponse shouldInterceptRequest(WebView webView, String str) {
Log.i(BbsWebViewActivity.f10286, "shouldInterceptRequest1:" + str);
return super.shouldInterceptRequest(webView, str);
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
boolean m49952 = xb3.m49952(BbsWebViewActivity.this);
if (!m49952) {
C1417.m8789((FrameLayout) BbsWebViewActivity.this.getWindow().getDecorView(), BbsWebViewActivity.this.getString(R.string.download_state_net_error)).m8791();
return true;
}
Log.i(BbsWebViewActivity.f10286, "shouldOverrideUrlLoading:" + str + "\n" + webView.getUrl() + " netWork:" + m49952);
if (str.startsWith("")) {
return true;
}
if (str.startsWith(wy1.f40130)) {
if (!str.contains("shouzhiyun.com") && !str.contains("vmos.cn") && !str.contains("vmos.com")) {
Intent intent = new Intent(BbsWebViewActivity.this, BbsOutWebViewActivity.class);
intent.putExtra("intent.key.url", str);
intent.putExtra("intent.key.from.title", BbsWebViewActivity.this.f10299);
intent.putExtra("intent.key.from.url", BbsWebViewActivity.this.f10298);
intent.putExtra("intent.key.from.desc", BbsWebViewActivity.this.f10297);
BbsWebViewActivity.this.startActivity(intent);
} else if (TextUtils.equals("", str) && TextUtils.isEmpty(BbsWebViewActivity.this.m13387())) {
return true;
} else {
if (TextUtils.equals(str, "") && TextUtils.equals(webView.getUrl(), "")) {
BbsWebViewActivity.this.m13388();
return true;
} else if (TextUtils.equals(str, "") && TextUtils.equals(webView.getUrl(), "")) {
BbsWebViewActivity.this.m13388();
return true;
} else {
webView.loadUrl(str);
return true;
}
}
} else {
Intent intent2 = new Intent();
intent2.setAction("android.intent.action.VIEW");
intent2.setData(Uri.parse(str));
BbsWebViewActivity.this.startActivity(intent2);
}
return true;
}
@Override
@Nullable
public WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
boolean m49952 = xb3.m49952(BbsWebViewActivity.this);
Log.i(BbsWebViewActivity.f10286, "shouldInterceptRequest:" + webResourceRequest.getUrl());
if (!m49952) {
BbsWebViewActivity.this.f10287.post(new Runnable() {
@Override
public final void run() {
BbsWebViewActivity.C1735.this.m13396();
}
});
}
return super.shouldInterceptRequest(webView, webResourceRequest);
}
@Override
public void onReceivedError(WebView webView, WebResourceRequest webResourceRequest, WebResourceError webResourceError) {
super.onReceivedError(webView, webResourceRequest, webResourceError);
Log.i(BbsWebViewActivity.f10286, "onReceivedHttpError: s:");
try {
if (TextUtils.equals(webResourceRequest.getUrl().toString(), BbsWebViewActivity.this.f10296)) {
BbsWebViewActivity.this.f10293 = true;
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
}