Spermatid v6.1.8版本的 MD5 值为:a375ce51a42d528ba6e2583c10478296
以下内容为反编译后的 CommonWebView.java 源代码,内容仅作参考
package com.maoyanym.views;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.location.Location;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.text.format.Time;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.accessibility.AccessibilityManager;
import android.webkit.JavascriptInterface;
import android.webkit.WebView;
import android.widget.FrameLayout;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import com.baidu.mobads.sdk.internal.bk;
import com.maoyanym.activityComm.CommonLogin;
import com.maoyanym.activityComm.DownloadService;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.tencent.smtt.sdk.ValueCallback;
import java.lang.reflect.Method;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.json.JSONObject;
public class CommonWebView extends FrameLayout {
public static Handler f17961a = new Handler(Looper.getMainLooper());
private InnerWebView f17962b;
private X5WebView f17963c;
private b2 f17964d;
private u1 f17965e;
private c2 f17966f;
private View.OnTouchListener f17967g;
private Map<String, String> f17968h;
public boolean f17969i;
public boolean f17970j;
public Point f17971k;
public boolean f17972l;
public boolean f17973m;
public boolean f17974n;
private String f17975o;
public class a implements Runnable {
public final String f17976a;
public final String f17977b;
public a(String str, String str2) {
this.f17976a = str;
this.f17977b = str2;
}
@Override
public void run() {
CommonWebView.this.f17975o = UUID.randomUUID().toString();
Intent intent = new Intent(CommonWebView.this.getContext(), (Class<?>) CommonLogin.class);
intent.addFlags(268435456);
if (com.maoyanym.utils.p.c(this.f17976a)) {
intent.putExtra("successUrl", this.f17976a);
}
if (com.maoyanym.utils.p.c(this.f17977b)) {
intent.putExtra("failUrl", this.f17977b);
}
intent.putExtra("uid", CommonWebView.this.f17975o);
CommonWebView.this.getContext().startActivity(intent);
}
}
public class a0 implements Runnable {
public a0() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onClickTasksCenter();
}
}
}
public class a1 implements Runnable {
public final String f17980a;
public a1(String str) {
this.f17980a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.dealPics(this.f17980a);
}
}
}
public static class a2 {
public void a(CommonWebView commonWebView, w1 w1Var, v1 v1Var) {
w1Var.a();
}
public void a(CommonWebView commonWebView, String str) {
}
public void a(CommonWebView commonWebView, String str, Bitmap bitmap) {
}
public boolean b(CommonWebView commonWebView, String str) {
if (str.startsWith("http://") || str.startsWith("https://")) {
return false;
}
try {
Intent parseUri = Intent.parseUri(str, 3);
if (!com.maoyanym.c.c.c(parseUri.getScheme())) {
return true;
}
parseUri.addFlags(268435456);
commonWebView.getContext().startActivity(parseUri);
return true;
} catch (Throwable unused) {
return true;
}
}
}
public class b implements Runnable {
public b() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onRefresh();
}
}
}
public class b0 implements Runnable {
public b0() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.openNextCoinTask();
}
}
}
public class b1 implements Runnable {
public b1() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.clickToPushSetting();
}
}
}
public interface b2 {
void aSetUserBindRelation(String str);
void clickToPushSetting();
void createPopupWindow(String str, String str2);
void dealPics(String str);
void destroyPopupWindow(String str);
void fetchAd(String str);
String getCoinTaskProgress();
String getCurrentCoinTask();
long getCurrentTaskId();
void getMonitorTime(String str);
String getTaskParams();
float getTopSafeAreaInset();
String getUserBindRelation();
String getUserSpecialId();
String getUtdid();
int getWebViewEnvironment();
String getYPProductData();
void gotoTab(String str);
String hasExitInterceptAd();
void hidePopupWindow(String str);
void hrefNumOnPage(int i10);
String isEnterReaderFromTask();
void isOwnerPageCallback(String str);
String isTaskFail();
void loadExitInterceptAd(String str);
void loadInterstitialAd(String str);
void loadReserveCoverAd(String str, Runnable runnable);
void needPost();
void onBackAdReceived(String str);
void onClickTasksCenter();
void onClose();
void onContentLoaded(String str);
void onContinueAd();
void onFloatAdShow();
void onMonitorPhase(String str);
void onMonitorTips(String str);
void onPayCancel();
void onPayFinish();
void onPayStart();
void onRefresh();
void onSkipAd();
void openCouponPage(String str);
void openItemDetailWithParams(String str);
void openNextCoinTask();
void openURLWithNewWindow(String str);
void postPopupWindowHeight(String str, int i10);
void postReserveCoverAd(String str);
void postRightBtn(String str);
void postTaskCenterCloseMsg(String str);
void postTaskCondition(String str);
void sendMessage(String str, String str2);
void setAdItem(com.maoyanym.a.s sVar);
void setStatusBarMode(int i10);
void shareGoodsDetails(String str);
void showExitInterceptAd();
void showPopupWindow(String str);
void timeMonitorComplete();
void userToLoginAndAuthorized(String str);
void webPageChanged(String str);
void webviewTitleChangeToString(String str);
void withdraw();
}
public class c implements Runnable {
public c() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onPayStart();
}
}
}
public class c0 implements Runnable {
public final String f17986a;
public c0(String str) {
this.f17986a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.openURLWithNewWindow(this.f17986a);
}
}
}
public class c1 implements Runnable {
public final String f17988a;
public c1(String str) {
this.f17988a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.postTaskCondition(this.f17988a);
}
}
}
public interface c2 {
void a(String str);
}
public class d implements Runnable {
public d() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onPayCancel();
}
}
}
public class d0 implements Runnable {
public d0() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.b();
}
}
}
public class d1 implements Runnable {
public d1() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.timeMonitorComplete();
}
}
}
public class e implements Runnable {
public e() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onPayFinish();
}
}
}
public class e0 implements Runnable {
public final String f17994a;
public e0(String str) {
this.f17994a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onBackAdReceived(this.f17994a);
}
}
}
public class e1 implements Runnable {
public final String f17996a;
public e1(String str) {
this.f17996a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.getMonitorTime(this.f17996a);
}
}
}
public class f implements Runnable {
public final String f17998a;
public f(String str) {
this.f17998a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onContentLoaded(this.f17998a);
}
}
}
public class f0 implements Runnable {
public final String f18000a;
public f0(String str) {
this.f18000a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.openItemDetailWithParams(this.f18000a);
}
}
}
public class f1 implements Runnable {
public final String f18002a;
public f1(String str) {
this.f18002a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.postRightBtn(this.f18002a);
}
}
}
public class g implements Runnable {
public g() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onClose();
}
}
}
public class g0 implements Runnable {
public final String f18005a;
public g0(String str) {
this.f18005a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.webviewTitleChangeToString(this.f18005a);
}
}
}
public class g1 implements Runnable {
public g1() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onFloatAdShow();
}
}
}
public class h implements Runnable {
public final String f18008a;
public final String f18009b;
public h(String str, String str2) {
this.f18008a = str;
this.f18009b = str2;
}
@Override
public void run() {
NativeAdUtil.getInstance().requestAd(CommonWebView.this, this.f18008a, this.f18009b);
}
}
public class h0 implements Runnable {
public h0() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onClose();
}
}
}
public class h1 implements Runnable {
public final String f18012a;
public h1(String str) {
this.f18012a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onMonitorTips(this.f18012a);
}
}
}
public class i implements Runnable {
public final String f18014a;
public i(String str) {
this.f18014a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.fetchAd(this.f18014a);
}
}
}
public class i0 implements Runnable {
public final String f18016a;
public i0(String str) {
this.f18016a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.openCouponPage(this.f18016a);
}
}
}
public class i1 implements Runnable {
public final String f18018a;
public i1(String str) {
this.f18018a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onMonitorPhase(this.f18018a);
}
}
}
public class j implements Runnable {
public final String f18020a;
public j(String str) {
this.f18020a = str;
}
@Override
public void run() {
try {
NativeAdUtil.getInstance().show(this.f18020a);
} catch (Exception unused) {
}
}
}
public class j0 implements Runnable {
public final String f18022a;
public j0(String str) {
this.f18022a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.shareGoodsDetails(this.f18022a);
}
}
}
public class j1 implements Runnable {
public j1() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onSkipAd();
}
}
}
public class k implements Runnable {
public final String f18025a;
public k(String str) {
this.f18025a = str;
}
@Override
public void run() {
CommonWebView.this.a(this.f18025a);
}
}
public class k0 implements Runnable {
public final String f18027a;
public final String f18028b;
public k0(String str, String str2) {
this.f18027a = str;
this.f18028b = str2;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.createPopupWindow(this.f18027a, this.f18028b);
}
}
}
public class k1 implements Runnable {
public k1() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.onContinueAd();
}
}
}
public class l implements Runnable {
public final String f18031a;
public final int f18032b;
public final int f18033c;
public final int f18034d;
public final int f18035e;
public class a implements Runnable {
public a() {
}
@Override
public void run() {
try {
NativeAdUtil nativeAdUtil = NativeAdUtil.getInstance();
l lVar = l.this;
nativeAdUtil.click(CommonWebView.this, lVar.f18031a, lVar.f18032b, lVar.f18033c, lVar.f18034d, lVar.f18035e, false);
} catch (Exception unused) {
}
}
}
public l(String str, int i10, int i11, int i12, int i13) {
this.f18031a = str;
this.f18032b = i10;
this.f18033c = i11;
this.f18034d = i12;
this.f18035e = i13;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.loadReserveCoverAd(this.f18031a, new a());
} else {
try {
NativeAdUtil.getInstance().click(CommonWebView.this, this.f18031a, this.f18032b, this.f18033c, this.f18034d, this.f18035e, false);
} catch (Exception unused) {
}
}
}
}
public class l0 implements Runnable {
public final String f18038a;
public l0(String str) {
this.f18038a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.showPopupWindow(this.f18038a);
}
}
}
public class l1 implements Runnable {
public final String f18040a;
public l1(String str) {
this.f18040a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.loadExitInterceptAd(this.f18040a);
}
}
}
public class m implements Runnable {
public final String f18042a;
public final int f18043b;
public final int f18044c;
public final int f18045d;
public final int f18046e;
public m(String str, int i10, int i11, int i12, int i13) {
this.f18042a = str;
this.f18043b = i10;
this.f18044c = i11;
this.f18045d = i12;
this.f18046e = i13;
}
@Override
public void run() {
try {
NativeAdUtil.getInstance().click(CommonWebView.this, this.f18042a, this.f18043b, this.f18044c, this.f18045d, this.f18046e, true);
} catch (Exception unused) {
}
}
}
public class m0 implements Runnable {
public final String f18048a;
public m0(String str) {
this.f18048a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.hidePopupWindow(this.f18048a);
}
}
}
public class m1 implements Runnable {
public m1() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.showExitInterceptAd();
}
}
}
public class n implements Runnable {
public final String f18051a;
public final int f18052b;
public n(String str, int i10) {
this.f18051a = str;
this.f18052b = i10;
}
@Override
public void run() {
try {
NativeAdUtil.getInstance().loadReport(this.f18051a, this.f18052b);
} catch (Exception unused) {
}
}
}
public class n0 implements Runnable {
public final String f18054a;
public n0(String str) {
this.f18054a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.destroyPopupWindow(this.f18054a);
}
}
}
public class n1 implements Runnable {
public n1() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.needPost();
}
}
}
public class o implements Runnable {
public final String f18057a;
public o(String str) {
this.f18057a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.webPageChanged(this.f18057a);
}
}
}
public class o0 implements Runnable {
public final String f18059a;
public final int f18060b;
public o0(String str, int i10) {
this.f18059a = str;
this.f18060b = i10;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.postPopupWindowHeight(this.f18059a, this.f18060b);
}
}
}
public class o1 implements Runnable {
public final String f18062a;
public o1(String str) {
this.f18062a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.loadInterstitialAd(this.f18062a);
}
}
}
public class p implements Runnable {
public p() {
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.withdraw();
}
}
}
public class p0 implements Runnable {
public final String f18065a;
public final String f18066b;
public p0(String str, String str2) {
this.f18065a = str;
this.f18066b = str2;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.sendMessage(this.f18065a, this.f18066b);
}
}
}
public class p1 implements Runnable {
public final String f18068a;
public p1(String str) {
this.f18068a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.postReserveCoverAd(this.f18068a);
}
}
}
public class q implements Runnable {
public q() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.k();
}
}
}
public class q0 implements Runnable {
public final String f18071a;
public q0(String str) {
this.f18071a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.aSetUserBindRelation(this.f18071a);
}
}
}
public class q1 implements Runnable {
public final String f18073a;
public q1(String str) {
this.f18073a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.isOwnerPageCallback(this.f18073a);
}
}
}
public class r implements Runnable {
public r() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.h();
}
}
}
public class r0 implements Runnable {
public r0() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.e();
}
}
}
public class r1 implements Runnable {
public final int f18077a;
public final int f18078b;
public final long f18079c;
public r1(int i10, int i11, long j10) {
this.f18077a = i10;
this.f18078b = i11;
this.f18079c = j10;
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.a(this.f18077a, this.f18078b, this.f18079c);
}
}
}
public class s implements Runnable {
public s() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.g();
}
}
}
public class s0 implements Runnable {
public final String f18082a;
public s0(String str) {
this.f18082a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17966f != null) {
CommonWebView.this.f17966f.a(this.f18082a);
}
}
}
public class s1 implements Runnable {
public final int f18084a;
public final int f18085b;
public final long f18086c;
public final String f18087d;
public s1(int i10, int i11, long j10, String str) {
this.f18084a = i10;
this.f18085b = i11;
this.f18086c = j10;
this.f18087d = str;
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.a(this.f18084a, this.f18085b, this.f18086c, this.f18087d);
}
}
}
public class t implements Runnable {
public t() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.d();
}
}
}
public class t0 implements Runnable {
public final String f18090a;
public t0(String str) {
this.f18090a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.gotoTab(this.f18090a);
}
}
}
public class t1 implements Runnable {
public t1() {
}
@Override
public void run() {
CommonWebView.this.f17975o = UUID.randomUUID().toString();
Intent intent = new Intent(CommonWebView.this.getContext(), (Class<?>) CommonLogin.class);
intent.addFlags(268435456);
intent.putExtra("uid", CommonWebView.this.f17975o);
CommonWebView.this.getContext().startActivity(intent);
}
}
public class u implements Runnable {
public u() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.a();
}
}
}
public class u0 implements Runnable {
public final String f18094a;
public u0(String str) {
this.f18094a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.userToLoginAndAuthorized(this.f18094a);
}
}
}
public interface u1 {
String a(int i10, int i11);
void a();
void a(int i10, int i11, long j10);
void a(int i10, int i11, long j10, String str);
void a(String str);
void a(String str, float f10);
void b();
int c();
void d();
void e();
void f();
void g();
void h();
int i();
void j();
void k();
int l();
int m();
String n();
}
public class v implements DialogInterface.OnClickListener {
public final String f18096a;
public final String f18097b;
public v(String str, String str2) {
this.f18096a = str;
this.f18097b = str2;
}
@Override
public void onClick(DialogInterface dialogInterface, int i10) {
Intent intent = new Intent(CommonWebView.this.getContext(), (Class<?>) DownloadService.class);
intent.putExtra(CampaignEx.JSON_KEY_TITLE, this.f18096a);
intent.putExtra("downurl", this.f18097b);
intent.putExtra(MBridgeConstans.DYNAMIC_VIEW_WX_PATH, com.maoyanym.c.b.c());
intent.putExtra("continuedown", true);
CommonWebView.this.getContext().startService(intent);
}
}
public class v0 implements Runnable {
public final String f18099a;
public final String f18100b;
public final String f18101c;
public v0(String str, String str2, String str3) {
this.f18099a = str;
this.f18100b = str2;
this.f18101c = str3;
}
@Override
public void run() {
CommonWebView.this.f17975o = UUID.randomUUID().toString();
Intent intent = new Intent(CommonWebView.this.getContext(), (Class<?>) CommonLogin.class);
intent.addFlags(268435456);
if (com.maoyanym.utils.p.c(this.f18099a)) {
intent.putExtra("url", this.f18099a);
}
if (com.maoyanym.utils.p.c(this.f18100b)) {
intent.putExtra("successUrl", this.f18100b);
}
if (com.maoyanym.utils.p.c(this.f18101c)) {
intent.putExtra("failUrl", this.f18101c);
}
intent.putExtra("uid", CommonWebView.this.f17975o);
CommonWebView.this.getContext().startActivity(intent);
}
}
public interface v1 {
String a();
int b();
}
public class w implements Runnable {
public final String f18103a;
public w(String str) {
this.f18103a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.a(this.f18103a);
}
}
}
public class w0 implements Runnable {
public w0() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.f();
}
}
}
public interface w1 {
void a();
void b();
}
public class x implements Runnable {
public x() {
}
@Override
public void run() {
if (CommonWebView.this.f17962b != null) {
CommonWebView.this.f17962b.b();
} else if (CommonWebView.this.f17963c != null) {
CommonWebView.this.f17963c.k();
}
}
}
public class x0 implements Runnable {
public x0() {
}
@Override
public void run() {
if (CommonWebView.this.f17965e != null) {
CommonWebView.this.f17965e.j();
}
}
}
public interface x1 {
int a();
z1 a(int i10);
}
public class y implements Runnable {
public final String f18108a;
public y(String str) {
this.f18108a = str;
}
@Override
public void run() {
if (CommonWebView.this.f17962b != null) {
CommonWebView.this.f17962b.a(this.f18108a);
} else if (CommonWebView.this.f17963c != null) {
CommonWebView.this.f17963c.a(this.f18108a);
}
}
}
public class y0 implements Runnable {
public final int f18110a;
public y0(int i10) {
this.f18110a = i10;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.setStatusBarMode(this.f18110a);
}
}
}
public static class y1 {
public void a(CommonWebView commonWebView, int i10) {
}
public void a(CommonWebView commonWebView, String str) {
}
}
public class z implements Runnable {
public final int f18112a;
public z(int i10) {
this.f18112a = i10;
}
@Override
public void run() {
if (CommonWebView.this.f17964d != null) {
CommonWebView.this.f17964d.hrefNumOnPage(this.f18112a);
}
}
}
public class z0 implements Runnable {
public z0() {
}
@Override
public void run() {
if (CommonWebView.this.f17962b != null) {
CommonWebView.this.f17962b.clearCache(true);
} else if (CommonWebView.this.f17963c != null) {
CommonWebView.this.f17963c.clearCache(true);
}
}
}
public interface z1 {
String a();
String b();
}
public CommonWebView(@NonNull Context context) {
super(context);
this.f17968h = new HashMap();
this.f17969i = true;
this.f17970j = false;
this.f17971k = new Point();
this.f17972l = false;
this.f17973m = false;
this.f17974n = false;
}
public CommonWebView(@NonNull Context context, @Nullable AttributeSet attributeSet) {
super(context, attributeSet);
this.f17968h = new HashMap();
this.f17969i = true;
this.f17970j = false;
this.f17971k = new Point();
this.f17972l = false;
this.f17973m = false;
this.f17974n = false;
}
public CommonWebView(@NonNull Context context, @Nullable AttributeSet attributeSet, int i10) {
super(context, attributeSet, i10);
this.f17968h = new HashMap();
this.f17969i = true;
this.f17970j = false;
this.f17971k = new Point();
this.f17972l = false;
this.f17973m = false;
this.f17974n = false;
}
@RequiresApi(api = 21)
public CommonWebView(@NonNull Context context, @Nullable AttributeSet attributeSet, int i10, int i11) {
super(context, attributeSet, i10, i11);
this.f17968h = new HashMap();
this.f17969i = true;
this.f17970j = false;
this.f17971k = new Point();
this.f17972l = false;
this.f17973m = false;
this.f17974n = false;
}
private void a() {
Context context;
if (Build.VERSION.SDK_INT != 17 || (context = getContext()) == null) {
return;
}
try {
AccessibilityManager accessibilityManager = (AccessibilityManager) context.getSystemService("accessibility");
if (accessibilityManager.isEnabled()) {
Method declaredMethod = accessibilityManager.getClass().getDeclaredMethod("setState", Integer.TYPE);
declaredMethod.setAccessible(true);
declaredMethod.invoke(accessibilityManager, 0);
}
} catch (Exception unused) {
}
}
public void a(String str) {
if (str.startsWith("javascript:") && Build.VERSION.SDK_INT >= 19) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.evaluateJavascript(str, null);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.evaluateJavascript(str, (ValueCallback) null);
return;
}
return;
}
if (Build.VERSION.SDK_INT < 8) {
InnerWebView innerWebView2 = this.f17962b;
if (innerWebView2 != null) {
innerWebView2.loadUrl(str);
return;
}
X5WebView x5WebView2 = this.f17963c;
if (x5WebView2 != null) {
x5WebView2.loadUrl(str);
return;
}
return;
}
b();
InnerWebView innerWebView3 = this.f17962b;
if (innerWebView3 != null) {
innerWebView3.loadUrl(str, this.f17968h);
return;
}
X5WebView x5WebView3 = this.f17963c;
if (x5WebView3 != null) {
x5WebView3.loadUrl(str, this.f17968h);
}
}
private boolean a(String str, String str2, long j10, boolean z10) {
String str3;
if (com.maoyanym.utils.p.a(str) || !(str.startsWith("http://") || str.startsWith("https://"))) {
return false;
}
if (com.maoyanym.utils.p.c(str2)) {
for (String str4 : str2.split("\\s*;\\s*")) {
int indexOf = str4.indexOf(61);
if (indexOf != -1 && str4.substring(0, indexOf).trim().equalsIgnoreCase("filename")) {
str3 = str4.substring(indexOf + 1).trim();
if (str3.startsWith("\"") && str3.endsWith("\"")) {
str3 = str3.substring(1, str3.length() - 1);
}
if (!com.maoyanym.utils.p.c(str3)) {
String decode = URLDecoder.decode(str3);
if (!decode.equalsIgnoreCase(str3)) {
if (URLEncoder.encode(decode).equalsIgnoreCase(str3)) {
str3 = URLDecoder.decode(str3);
} else {
str3 = URLDecoder.decode(str3, "GB2312");
}
}
if (!com.maoyanym.utils.p.a(str3)) {
return false;
}
String lowerCase = str3.toLowerCase();
if (!lowerCase.endsWith(".apk")) {
return false;
}
if (this.f17969i) {
AlertDialog create = new AlertDialog.Builder(getContext()).setTitle("提示").setMessage(com.maoyanym.utils.i.c() == 1 ? "您正处在WIFI网络下,下载无需流量:)" : "您正处在非WIFI网络下,下载需要消耗流量!").setPositiveButton("确认", new v(lowerCase, str)).setNegativeButton("取消", (DialogInterface.OnClickListener) null).create();
create.setCancelable(true);
create.setCanceledOnTouchOutside(true);
create.show();
} else {
Intent intent = new Intent(getContext(), (Class<?>) DownloadService.class);
intent.putExtra(CampaignEx.JSON_KEY_TITLE, lowerCase);
intent.putExtra("downurl", str);
intent.putExtra(MBridgeConstans.DYNAMIC_VIEW_WX_PATH, com.maoyanym.c.b.c());
intent.putExtra("continuedown", true);
getContext().startService(intent);
}
return true;
}
str3 = com.maoyanym.utils.p.b(com.maoyanym.utils.p.a(URLDecoder.decode(str), '/'), '?');
if (!str.contains(str3) && !str.contains(URLEncoder.encode(str3).replace("+", "%20"))) {
str3 = com.maoyanym.utils.p.b(com.maoyanym.utils.p.a(URLDecoder.decode(str, "GB2312"), '/'), '?');
}
if (!com.maoyanym.utils.p.a(str3)) {
}
if (!com.maoyanym.utils.p.a(str3)) {
}
}
}
}
str3 = "";
if (!com.maoyanym.utils.p.c(str3)) {
}
if (!com.maoyanym.utils.p.a(str3)) {
}
}
private void b() {
this.f17968h.clear();
this.f17968h.put("X-Requested-With", "XMLHttpRequest");
this.f17968h.put("info-userid", String.valueOf(com.maoyanym.c.b.j().c()));
this.f17968h.put("info-login", com.maoyanym.c.b.j().d() ? "1" : "0");
if (com.maoyanym.utils.p.c(com.maoyanym.c.b.j().a())) {
this.f17968h.put("info-uid", com.maoyanym.c.b.j().a());
}
this.f17968h.put("x-auth-token", com.maoyanym.c.b.j().b());
this.f17968h.put("info-product", com.maoyanym.b.a.f17734h);
this.f17968h.put("info-adproduct", com.maoyanym.b.a.f17733g);
this.f17968h.put("info-sv", String.valueOf(7603));
if (isX5CoreLoaded()) {
this.f17968h.put("info-x5", "1");
}
if (com.maoyanym.utils.p.c(com.maoyanym.b.a.f17742p)) {
this.f17968h.put("info-tsv", com.maoyanym.b.a.f17742p);
}
if (com.maoyanym.utils.p.c(com.maoyanym.b.a.f17743q)) {
this.f17968h.put("info-tv", com.maoyanym.b.a.f17743q);
}
if (this.f17970j) {
this.f17968h.put("info-supgdt", "1");
this.f17968h.put("info-source", bk.f4476g);
this.f17968h.put("info-adver", "106");
this.f17968h.put("info-readerver", "3.0");
this.f17968h.put("info-releasetime", "2024-01-05 14:30:00");
this.f17968h.put("info-imei", com.maoyanym.utils.d.b());
this.f17968h.put("info-channel", "maoyanym");
this.f17968h.put("info-mac", com.maoyanym.utils.d.d());
this.f17968h.put("info-imsi", com.maoyanym.utils.d.c());
this.f17968h.put("info-androiid", com.maoyanym.utils.d.a());
this.f17968h.put("info-version", String.valueOf(com.maoyanym.b.a.f17728b));
this.f17968h.put("info-versionName", com.maoyanym.b.a.f17729c);
this.f17968h.put("info-subversion", String.valueOf(com.maoyanym.b.a.f17730d));
this.f17968h.put("info-model", Build.MODEL);
this.f17968h.put("info-os", Build.VERSION.RELEASE);
this.f17968h.put("info-sdkint", String.valueOf(Build.VERSION.SDK_INT));
this.f17968h.put("info-manufacturer", Build.MANUFACTURER);
this.f17968h.put("info-brand", Build.BRAND);
this.f17968h.put("info-vendor", Build.PRODUCT);
this.f17968h.put("info-device", Build.DEVICE);
this.f17968h.put("info-board", Build.BOARD);
this.f17968h.put("info-hardware", Build.HARDWARE);
this.f17968h.put("info-totalRam", String.valueOf(com.maoyanym.utils.d.h()));
this.f17968h.put("info-totalRom", String.valueOf(com.maoyanym.utils.d.i()));
this.f17968h.put("info-display", Build.DISPLAY);
this.f17968h.put("info-platform", "android");
this.f17968h.put("info-dt", "phone");
if (com.maoyanym.utils.p.c(com.maoyanym.utils.d.e())) {
this.f17968h.put("info-oaid", com.maoyanym.utils.d.e());
}
Time time = new Time();
time.setToNow();
String valueOf = String.valueOf(time.toMillis(true));
this.f17968h.put("info-time", valueOf);
this.f17968h.put("info-vcode", com.maoyanym.d.c.a(valueOf + com.maoyanym.b.a.f17728b));
this.f17968h.put("info-network", String.valueOf(com.maoyanym.utils.i.a()));
this.f17968h.put("screen-width", String.valueOf(com.maoyanym.utils.d.f().x));
this.f17968h.put("screen-height", String.valueOf(com.maoyanym.utils.d.f().y));
this.f17968h.put("screen-inches", String.format("%.1f", Double.valueOf(com.maoyanym.utils.d.g())));
this.f17968h.put("info-pkg", com.maoyanym.b.a.f17731e);
this.f17968h.put("info-battery", com.maoyanym.utils.a.b());
Location b10 = com.maoyanym.utils.l.b();
if (b10 != null) {
this.f17968h.put("info-lon", String.format("%.2f", Double.valueOf(b10.getLongitude())));
this.f17968h.put("info-lat", String.format("%.2f", Double.valueOf(b10.getLatitude())));
}
}
}
public static void setDebuggingMode(boolean z10) {
try {
if (Build.VERSION.SDK_INT >= 19) {
WebView.setWebContentsDebuggingEnabled(z10);
}
} catch (Throwable unused) {
}
try {
if (Build.VERSION.SDK_INT >= 19) {
com.tencent.smtt.sdk.WebView.setWebContentsDebuggingEnabled(z10);
}
} catch (Throwable unused2) {
}
}
public final void a(Runnable runnable) {
if (Looper.getMainLooper().getThread() == Thread.currentThread()) {
runnable.run();
} else {
f17961a.post(runnable);
}
}
@JavascriptInterface
public void aSetUserBindRelation(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>aSetUserBindRelation");
a(new q0(str));
}
public void addAdView(View view) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.addView(view);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.addView(view);
}
}
@JavascriptInterface
public void beginReadH5BookWithBookId(int i10, int i11, long j10) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>beginReadH5BookWithBookId");
a(new r1(i10, i11, j10));
}
@JavascriptInterface
public int bookAwaradValid() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>bookAwaradValid");
return com.maoyanym.c.b.a(com.maoyanym.c.c.a("project_valid"), true) ? 1 : 0;
}
public boolean canGoBack() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
return innerWebView.canGoBack();
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
return x5WebView.canGoBack();
}
return false;
}
public void changeVisibility(int i10) {
if (i10 != 0) {
try {
loadUrl("javascript:if(window.onVisibilityChange){window.onVisibilityChange('hidden')}");
return;
} catch (Throwable unused) {
return;
}
}
try {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.resumeTimers();
} else {
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.resumeTimers();
}
}
} catch (Throwable unused2) {
}
try {
loadUrl("javascript:if(window.onVisibilityChange){window.onVisibilityChange('visible')}");
} catch (Throwable unused3) {
}
System.out.println("tttttttttttttttttttttttonWindowVisibilityChanged");
refreshContent();
if (this.f17974n || !com.maoyanym.utils.i.a(com.maoyanym.c.b.a(com.maoyanym.c.c.b("task_complete_time"), 0L))) {
return;
}
System.out.println("tttttttttttttttttttttttonWindowVisibilityChanged onTaskCenterComplete");
this.f17974n = true;
loadUrl("javascript:onTaskCenterComplete()");
}
public void clearCache(boolean z10) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.clearCache(z10);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.clearCache(z10);
}
}
public void clearHistory() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.clearHistory();
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.clearHistory();
}
}
@JavascriptInterface
public void clearJsAdCache() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>clearJsAdCache");
a(new x());
}
public void clearView() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.clearView();
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.clearView();
}
}
@JavascriptInterface
public void clearWebCache(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>clearWebCache");
a(new y(str));
}
@JavascriptInterface
public void clearWebPageCache() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>clearWebPageCache");
a(new z0());
}
@JavascriptInterface
public void click(String str, int i10, int i11, int i12, int i13) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>click=" + str);
a(new l(str, i10, i11, i12, i13));
}
@JavascriptInterface
public void clickForNewWindow(String str, int i10, int i11, int i12, int i13) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>clickForNewWindow=" + str);
a(new m(str, i10, i11, i12, i13));
}
@JavascriptInterface
public void clickToPushSetting() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>clickToPushSetting");
a(new b1());
}
@JavascriptInterface
public void closeWindow() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>closeWindow");
a(new h0());
}
public x1 copyBackForwardList() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
return innerWebView.innercopyBackForwardList();
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
return x5WebView.x5copyBackForwardList();
}
return null;
}
@JavascriptInterface
public void createFloatAds(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>createFloatAds=" + str);
}
@JavascriptInterface
public void createPopupWindow(String str, String str2) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>createPopupWindow = " + str);
a(new k0(str, str2));
}
@JavascriptInterface
public void dealPics(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>dealPics=" + str);
a(new a1(str));
}
@JavascriptInterface
public void destoryAds() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>destoryAds");
}
public void destroy() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.destroy();
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.destroy();
}
}
@JavascriptInterface
public void destroyFloatAds() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>destroyFloatAds");
}
@JavascriptInterface
public void destroyPopupWindow(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>destroyPopupWindow = " + str);
a(new n0(str));
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
if (motionEvent.getActionMasked() == 0) {
setTouchByUser();
this.f17971k.set((int) motionEvent.getX(), (int) motionEvent.getY());
}
View.OnTouchListener onTouchListener = this.f17967g;
if (onTouchListener != null) {
onTouchListener.onTouch(this, motionEvent);
}
return super.dispatchTouchEvent(motionEvent);
}
@JavascriptInterface
public void endChapterReadH5BookWithBookId(int i10, int i11, long j10, String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>endChapterReadH5BookWithBookId");
a(new s1(i10, i11, j10, str));
}
@JavascriptInterface
public void fetchAd(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>fetchAd=");
a(new i(str));
}
public void finish() {
this.f17973m = true;
}
@JavascriptInterface
public void finishTask() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>finishTask");
a(new d0());
}
public void freeMemory() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.freeMemory();
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.freeMemory();
}
}
@JavascriptInterface
public String getAdClickCount(int i10, int i11) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getAdClickCount");
u1 u1Var = this.f17965e;
if (u1Var != null) {
return u1Var.a(i10, i11);
}
return null;
}
@JavascriptInterface
public String getCoinTaskProgress() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getCoinTaskProgress");
b2 b2Var = this.f17964d;
if (b2Var != null) {
return b2Var.getCoinTaskProgress();
}
return null;
}
@JavascriptInterface
public String getCurrentCoinTask() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getCurrentCoinTask");
b2 b2Var = this.f17964d;
if (b2Var != null) {
return b2Var.getCurrentCoinTask();
}
return null;
}
public long getCurrentTaskId() {
b2 b2Var = this.f17964d;
if (b2Var != null) {
return b2Var.getCurrentTaskId();
}
return 0L;
}
@JavascriptInterface
public String getFilterAdSource() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getFilterAdSource");
u1 u1Var = this.f17965e;
return u1Var != null ? u1Var.n() : "";
}
@JavascriptInterface
public String getHeaders() {
Location b10;
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getHeaders");
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("info-supgdt", "1");
jSONObject.put("info-source", bk.f4476g);
jSONObject.put("info-adver", "106");
jSONObject.put("info-readerver", "3.0");
jSONObject.put("info-releasetime", "2024-01-05 14:30:00");
jSONObject.put("info-imei", com.maoyanym.utils.d.b());
jSONObject.put("info-mac", com.maoyanym.utils.d.d());
jSONObject.put("info-imsi", com.maoyanym.utils.d.c());
jSONObject.put("info-androiid", com.maoyanym.utils.d.a());
jSONObject.put("info-channel", "maoyanym");
jSONObject.put("info-version", String.valueOf(com.maoyanym.b.a.f17728b));
jSONObject.put("info-versionName", com.maoyanym.b.a.f17729c);
jSONObject.put("info-subversion", String.valueOf(com.maoyanym.b.a.f17730d));
jSONObject.put("info-model", Build.MODEL);
jSONObject.put("info-os", Build.VERSION.RELEASE);
jSONObject.put("info-sdkint", String.valueOf(Build.VERSION.SDK_INT));
jSONObject.put("info-manufacturer", Build.MANUFACTURER);
jSONObject.put("info-brand", Build.BRAND);
jSONObject.put("info-vendor", Build.PRODUCT);
jSONObject.put("info-device", Build.DEVICE);
jSONObject.put("info-board", Build.BOARD);
jSONObject.put("info-hardware", Build.HARDWARE);
jSONObject.put("info-totalRam", String.valueOf(com.maoyanym.utils.d.h()));
jSONObject.put("info-totalRom", String.valueOf(com.maoyanym.utils.d.i()));
jSONObject.put("info-display", Build.DISPLAY);
jSONObject.put("info-platform", "android");
jSONObject.put("info-dt", "phone");
if (com.maoyanym.utils.p.c(com.maoyanym.utils.d.e())) {
jSONObject.put("info-oaid", com.maoyanym.utils.d.e());
}
Time time = new Time();
time.setToNow();
String valueOf = String.valueOf(time.toMillis(true));
jSONObject.put("info-time", valueOf);
jSONObject.put("info-vcode", com.maoyanym.d.c.a(valueOf + com.maoyanym.b.a.f17728b));
jSONObject.put("info-userid", String.valueOf(com.maoyanym.c.b.j().c()));
jSONObject.put("info-login", com.maoyanym.c.b.j().d() ? "1" : "0");
if (com.maoyanym.utils.p.c(com.maoyanym.c.b.j().a())) {
jSONObject.put("info-uid", com.maoyanym.c.b.j().a());
}
jSONObject.put("x-auth-token", com.maoyanym.c.b.j().b());
jSONObject.put("info-product", com.maoyanym.b.a.f17734h);
jSONObject.put("info-adproduct", com.maoyanym.b.a.f17733g);
jSONObject.put("info-sv", String.valueOf(7603));
jSONObject.put("info-network", String.valueOf(com.maoyanym.utils.i.a()));
jSONObject.put("screen-width", String.valueOf(com.maoyanym.utils.d.f().x));
jSONObject.put("screen-height", String.valueOf(com.maoyanym.utils.d.f().y));
jSONObject.put("screen-inches", String.format("%.1f", Double.valueOf(com.maoyanym.utils.d.g())));
jSONObject.put("info-pkg", com.maoyanym.b.a.f17731e);
jSONObject.put("info-battery", com.maoyanym.utils.a.b());
if (this.f17970j && (b10 = com.maoyanym.utils.l.b()) != null) {
jSONObject.put("info-lon", String.format("%.2f", Double.valueOf(b10.getLongitude())));
jSONObject.put("info-lat", String.format("%.2f", Double.valueOf(b10.getLatitude())));
}
if (isX5CoreLoaded()) {
jSONObject.put("info-x5", "1");
}
if (com.maoyanym.utils.p.c(com.maoyanym.b.a.f17742p)) {
jSONObject.put("info-tsv", com.maoyanym.b.a.f17742p);
}
if (com.maoyanym.utils.p.c(com.maoyanym.b.a.f17743q)) {
jSONObject.put("info-tv", com.maoyanym.b.a.f17743q);
}
return jSONObject.toString();
} catch (Exception unused) {
return "{}";
}
}
public InnerWebView getInnerWebView() {
return this.f17962b;
}
@JavascriptInterface
public void getMonitorTime(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getMonitorTime");
a(new e1(str));
}
public String getOriginalUrl() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
return innerWebView.getOriginalUrl();
}
X5WebView x5WebView = this.f17963c;
return x5WebView != null ? x5WebView.getOriginalUrl() : "";
}
public float getScale() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
return innerWebView.getScale();
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
return x5WebView.getScale();
}
return 1.0f;
}
@JavascriptInterface
public String getSetupConfig() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getSetupConfig");
return com.maoyanym.c.b.i();
}
public String getTaskParams() {
b2 b2Var = this.f17964d;
if (b2Var != null) {
return b2Var.getTaskParams();
}
return null;
}
@JavascriptInterface
public int getTaskStatus() {
u1 u1Var = this.f17965e;
int i10 = u1Var != null ? u1Var.i() : 1;
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getTaskStatus=" + i10);
return i10;
}
@JavascriptInterface
public String getTextFromClipboard(int i10) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getTextFromClipboard");
try {
String b10 = com.maoyanym.utils.i.b();
if (i10 == 1) {
com.maoyanym.utils.i.d();
}
return b10;
} catch (Throwable unused) {
return "";
}
}
public String getTitle() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
return innerWebView.getTitle();
}
X5WebView x5WebView = this.f17963c;
return x5WebView != null ? x5WebView.getTitle() : "";
}
@JavascriptInterface
public String getTopSafeAreaInset() {
b2 b2Var = this.f17964d;
float topSafeAreaInset = (b2Var != null ? b2Var.getTopSafeAreaInset() : 0.0f) / getScale();
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getTopSafeAreaInset = " + topSafeAreaInset);
return String.valueOf(topSafeAreaInset);
}
public String getUA() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
return innerWebView.getUA();
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
return x5WebView.getUA();
}
return null;
}
public String getUrl() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
return innerWebView.getUrl();
}
X5WebView x5WebView = this.f17963c;
return x5WebView != null ? x5WebView.getUrl() : "";
}
@JavascriptInterface
public String getUserBindRelation() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getUserBindRelation");
b2 b2Var = this.f17964d;
return b2Var != null ? b2Var.getUserBindRelation() : "";
}
@JavascriptInterface
public String getUserSpecialId() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getUserSpecialId");
b2 b2Var = this.f17964d;
return b2Var != null ? b2Var.getUserSpecialId() : "";
}
@JavascriptInterface
public String getUtdid() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getUtdid");
b2 b2Var = this.f17964d;
return b2Var != null ? b2Var.getUtdid() : "";
}
@JavascriptInterface
public int getWebViewEnvironment() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getWebViewEnvironment");
b2 b2Var = this.f17964d;
if (b2Var != null) {
return b2Var.getWebViewEnvironment();
}
return 0;
}
@JavascriptInterface
public String getYPProductData() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>getYPProductData");
b2 b2Var = this.f17964d;
return b2Var != null ? b2Var.getYPProductData() : "";
}
public void goBack() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.goBack();
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.goBack();
}
}
public void goBackOrForward(int i10) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.goBackOrForward(i10);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.goBackOrForward(i10);
}
}
@JavascriptInterface
public void gotoTab(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>gotoTab");
a(new t0(str));
}
@JavascriptInterface
public int h5BookhasCoin() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>h5BookhasCoin");
u1 u1Var = this.f17965e;
return u1Var != null ? u1Var.l() : com.maoyanym.c.b.a(com.maoyanym.c.c.b("hascoin"), -1);
}
@com.maoyanym.utils.q
public void handleH5Message(com.maoyanym.utils.e eVar) {
if (isFinished()) {
return;
}
loadUrl(String.format("javascript:if(window.onReceiveMessage){window.onReceiveMessage('%s')}", eVar.a()));
}
@com.maoyanym.utils.q
public void handleLoginResult(com.maoyanym.utils.f fVar) {
if (com.maoyanym.utils.p.c(this.f17975o) && this.f17975o.equalsIgnoreCase(fVar.a())) {
String b10 = fVar.b();
if (!com.maoyanym.utils.p.c(b10) || b10.equalsIgnoreCase("undefined")) {
return;
}
loadUrl(b10);
}
}
@JavascriptInterface
public String hasExitInterceptAd() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>hasExitInterceptAd");
b2 b2Var = this.f17964d;
return b2Var != null ? b2Var.hasExitInterceptAd() : "0";
}
@JavascriptInterface
public void hideAds() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>hideAds");
}
@JavascriptInterface
public void hidePopupWindow(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>hidePopupWindow = " + str);
a(new m0(str));
}
@JavascriptInterface
public void hideProgressView() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>hideProgressView");
a(new s());
}
@JavascriptInterface
public void hideTaskPrompt() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>hideTaskPrompt");
a(new x0());
}
@JavascriptInterface
public void hrefNumOnPage(int i10) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>hrefNumOnPage");
a(new z(i10));
}
public void initWebView(boolean z10) {
a();
if (z10 && com.maoyanym.b.a.f17741o) {
?? x5WebView = new X5WebView(getContext());
this.f17963c = x5WebView;
addView((View) x5WebView, new FrameLayout.LayoutParams(-1, -1));
this.f17963c.a(this);
this.f17963c.setCommonWebViewClient(new a2());
this.f17963c.setCommonWebChromeClient(new y1());
return;
}
InnerWebView innerWebView = new InnerWebView(getContext());
this.f17962b = innerWebView;
addView(innerWebView, new FrameLayout.LayoutParams(-1, -1));
this.f17962b.a(this);
this.f17962b.setCommonWebViewClient(new a2());
this.f17962b.setCommonWebChromeClient(new y1());
}
@JavascriptInterface
public int isAllowRead() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>isAllowRead");
u1 u1Var = this.f17965e;
if (u1Var != null) {
return u1Var.m();
}
return 1;
}
@JavascriptInterface
public String isEnterReaderFromTask() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>isEnterReaderFromTask");
b2 b2Var = this.f17964d;
return b2Var != null ? b2Var.isEnterReaderFromTask() : "0";
}
public boolean isFinished() {
return this.f17973m;
}
@JavascriptInterface
public void isOwnerPageCallback(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>isOwnerPageCallback=" + str);
a(new q1(str));
}
@JavascriptInterface
public String isTaskCenterComplete() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>isTaskCenterComplete");
try {
return com.maoyanym.utils.i.a(com.maoyanym.c.b.a(com.maoyanym.c.c.b("task_complete_time"), 0L)) ? "1" : "0";
} catch (Exception unused) {
return "0";
}
}
@JavascriptInterface
public String isTaskFail() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>isTaskFail");
b2 b2Var = this.f17964d;
return b2Var != null ? b2Var.isTaskFail() : "0";
}
public boolean isTouchByUser() {
return this.f17972l;
}
public boolean isUseX5() {
return this.f17962b == null && this.f17963c != null;
}
@JavascriptInterface
public boolean isValidAd() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>isValidAd");
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
return innerWebView.c();
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
return x5WebView.l();
}
return true;
}
public boolean isX5CoreLoaded() {
X5WebView x5WebView;
if (this.f17962b == null && (x5WebView = this.f17963c) != null) {
return x5WebView.isX5CoreLoaded();
}
return false;
}
public void loadDataWithBaseURL(String str, String str2, String str3, String str4, String str5) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.loadDataWithBaseURL(str, str2, str3, str4, str5);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.loadDataWithBaseURL(str, str2, str3, str4, str5);
}
}
@JavascriptInterface
public void loadExitInterceptAd(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>loadExitInterceptAd=" + str);
a(new l1(str));
}
@JavascriptInterface
public void loadInterstitialAd(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>loadInterstitialAd=" + str);
a(new o1(str));
}
@JavascriptInterface
public void loadReport(String str, int i10) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>loadReport=" + str);
a(new n(str, i10));
}
public void loadUrl(String str) {
a(new k(str));
}
@JavascriptInterface
public void login() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>login");
a(new t1());
}
@JavascriptInterface
public void login(String str, String str2) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>login, su=" + str + ", fu=" + str2);
a(new a(str, str2));
}
@JavascriptInterface
public void login3(String str, String str2, String str3) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>login3");
a(new v0(str, str2, str3));
}
@JavascriptInterface
public void logout3() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>logout3");
try {
com.maoyanym.utils.t.a().a(new com.maoyanym.utils.g());
} catch (Throwable unused) {
}
}
@JavascriptInterface
public void moveFloatAds(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>moveFloatAds=" + str);
}
@JavascriptInterface
public void needPost() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>needPost");
a(new n1());
}
@JavascriptInterface
public void noticeProgressChanged(String str, float f10) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>noticeProgressChanged");
u1 u1Var = this.f17965e;
if (u1Var != null) {
u1Var.a(str, f10);
}
}
public void onActivityResult(int i10, int i11, Intent intent) {
}
@JavascriptInterface
public void onBackAdReceived(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onBackAdReceived = " + str);
a(new e0(str));
}
@JavascriptInterface
public void onClickClose() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onClickClose");
a(new g());
}
@JavascriptInterface
public void onClickPayBtn() {
}
@JavascriptInterface
public void onClickTasksCenter() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onClickTasksCenter");
a(new a0());
}
@JavascriptInterface
public void onContentLoaded(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onContentLoaded");
a(new f(str));
}
@JavascriptInterface
public void onContinueAd() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onContinueAd");
a(new k1());
}
@JavascriptInterface
public void onCopy(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onCopy");
com.maoyanym.utils.i.a(str);
Toast.makeText(getContext(), "已复制到剪贴板", 0).show();
}
public void onDownloadStart(String str, String str2, String str3, String str4, long j10) {
try {
if (a(str, str3, j10, false)) {
return;
}
getContext().startActivity(new Intent("android.intent.action.VIEW", Uri.parse(str)));
} catch (Exception unused) {
}
}
@JavascriptInterface
public void onFloatAdShow() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onFloatAdShow");
a(new g1());
}
@JavascriptInterface
public void onMonitorPhase(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onMonitorPhase=" + str);
a(new i1(str));
}
@JavascriptInterface
public void onMonitorTips(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onMonitorTips=" + str);
a(new h1(str));
}
@JavascriptInterface
public void onNeedRefresh() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onNeedRefresh");
a(new b());
}
@JavascriptInterface
public void onPayCancel() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onPayCancel");
a(new d());
}
@JavascriptInterface
public void onPayFinish() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onPayFinish");
a(new e());
}
@JavascriptInterface
public void onPayStart() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onPayStart");
a(new c());
}
@JavascriptInterface
public void onSkipAd() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>onSkipAd");
a(new j1());
}
@JavascriptInterface
public void openCouponPage(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>openCouponPage = " + str);
a(new i0(str));
}
@JavascriptInterface
public void openItemDetailWithParams(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>openItemDetailWithParams = " + str);
a(new f0(str));
}
@JavascriptInterface
public void openNextCoinTask() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>openNextCoinTask");
a(new b0());
}
@JavascriptInterface
public void openURLWithNewWindow(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>openURLWithNewWindow = " + str);
a(new c0(str));
}
@JavascriptInterface
public void postAdPosition(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>postAdPosition = " + str);
}
@JavascriptInterface
public void postH5Message(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>postH5Message");
try {
com.maoyanym.utils.t.a().a(new com.maoyanym.utils.e(str));
} catch (Throwable unused) {
}
}
@JavascriptInterface
public void postPopupWindowHeight(String str, int i10) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>postPopupWindowHeight = " + str + "; height = " + i10);
a(new o0(str, i10));
}
@JavascriptInterface
public void postPromotionPage(String str) {
}
@JavascriptInterface
public void postReserveCoverAd(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>postReserveCoverAd=" + str);
a(new p1(str));
}
@JavascriptInterface
public void postRightBtn(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>postRightBtn=" + str);
a(new f1(str));
}
@JavascriptInterface
public void postTaskCenterCloseMsg(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>postTaskCenterCloseMsg json=" + str);
b2 b2Var = this.f17964d;
if (b2Var != null) {
b2Var.postTaskCenterCloseMsg(str);
}
}
@JavascriptInterface
public void postTaskCondition(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>postTaskCondition=" + str);
a(new c1(str));
}
@JavascriptInterface
public void refreshAdByPage(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>refreshAdByPage = " + str);
}
@JavascriptInterface
public void refreshAds() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>refreshAds");
}
public void refreshContent() {
loadUrl("javascript:if(window.refreshView){window.refreshView()}");
}
public void registerEventBus() {
com.maoyanym.utils.t.a().b(this);
}
public void reload() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.reload();
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.reload();
}
}
public void report2Web() {
int i10;
int i11;
try {
i11 = (int) (this.f17971k.x / getScale());
i10 = (int) (this.f17971k.y / getScale());
} catch (Exception unused) {
Point point = this.f17971k;
int i12 = point.x;
i10 = point.y;
i11 = i12;
}
loadUrl("javascript:if(window.EventBus){window.EventBus.$emit('tap'," + String.format("{x:%d,y:%d}", Integer.valueOf(i11), Integer.valueOf(i10)) + ")}");
}
@JavascriptInterface
public void requestAd(String str, String str2) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>requestAd=" + str);
a(new h(str, str2));
}
public void resetTouchState() {
this.f17972l = false;
}
@JavascriptInterface
public void screenCapture(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>screenCapture=" + str);
a(new s0(str));
}
@JavascriptInterface
public void sendMessage(String str, String str2) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>sendMessage=" + str + "; msg=" + str2);
a(new p0(str, str2));
}
public void setAdItem(com.maoyanym.a.s sVar) {
b2 b2Var = this.f17964d;
if (b2Var != null) {
b2Var.setAdItem(sVar);
}
}
public void setCacheMode(int i10) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.setCacheMode(i10);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.setCacheMode(i10);
}
}
public void setCommonWebChromeClient(y1 y1Var) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.setCommonWebChromeClient(y1Var);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.setCommonWebChromeClient(y1Var);
}
}
public void setCommonWebViewClient(a2 a2Var) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.setCommonWebViewClient(a2Var);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.setCommonWebViewClient(a2Var);
}
}
public void setCommonWebViewListener(b2 b2Var) {
this.f17964d = b2Var;
}
@JavascriptInterface
public void setFloatAdsCarousel(boolean z10) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>setFloatAdsCarousel");
}
@JavascriptInterface
public void setFloatAdsItem(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>setFloatAdsItem");
}
public void setJavaScriptEnabled(boolean z10) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.setJavaScriptEnabled(z10);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.setJavaScriptEnabled(z10);
}
}
public void setMediaPlaybackRequiresUserGesture(boolean z10) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.setMediaPlaybackRequiresUserGesture(z10);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.setMediaPlaybackRequiresUserGesture(z10);
}
}
public void setOnAwardListener(u1 u1Var) {
this.f17965e = u1Var;
}
public void setOnScreenCaptureListener(c2 c2Var) {
this.f17966f = c2Var;
}
@Override
public void setOnTouchListener(View.OnTouchListener onTouchListener) {
this.f17967g = onTouchListener;
}
public void setOverrideDownload(boolean z10) {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.setDownloadEnable(z10);
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.setDownloadEnable(z10);
}
}
public void setPromptDownload(boolean z10) {
this.f17969i = z10;
}
@JavascriptInterface
public void setSdkAdClickable(boolean z10, String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>setSdkAdClickable=" + z10 + ", params=" + str);
}
@JavascriptInterface
public void setStatusBarMode(int i10) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>setStatusBarMode=" + i10);
a(new y0(i10));
}
public void setTouchByUser() {
this.f17972l = true;
}
@JavascriptInterface
public void shareGoodsDetails(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>shareGoodsDetails");
a(new j0(str));
}
@JavascriptInterface
public void show(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>show=" + str);
a(new j(str));
}
@JavascriptInterface
public void showAdTip() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>showAdTip");
a(new q());
}
@JavascriptInterface
public void showExitInterceptAd() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>showExitInterceptAd");
a(new m1());
}
@JavascriptInterface
public void showPopupWindow(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>showPopupWindow = " + str);
a(new l0(str));
}
@JavascriptInterface
public void showProgressView() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>showProgressView");
a(new r());
}
@JavascriptInterface
public void showPromotionPage() {
}
@JavascriptInterface
public void showTaskPrompt() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>showTaskPrompt");
a(new w0());
}
public void stopLoading() {
InnerWebView innerWebView = this.f17962b;
if (innerWebView != null) {
innerWebView.stopLoading();
return;
}
X5WebView x5WebView = this.f17963c;
if (x5WebView != null) {
x5WebView.stopLoading();
}
}
@JavascriptInterface
public void taskAdDismiss() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>taskAdDismiss");
a(new u());
}
@JavascriptInterface
public void taskAdShow() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>taskAdShow");
a(new t());
}
@JavascriptInterface
public void taskAdSource(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>taskAdSource, adSource=" + str);
a(new w(str));
}
@JavascriptInterface
public void timeMonitorComplete() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>timeMonitorComplete");
a(new d1());
}
public void unregisterEventBus() {
com.maoyanym.utils.t.a().c(this);
}
@JavascriptInterface
public void updateUserCoin() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>updateUserCoin");
a(new r0());
}
@JavascriptInterface
public void userToLoginAndAuthorized(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>userToLoginAndAuthorized");
a(new u0(str));
}
@JavascriptInterface
public void webPageChanged(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>webPageChanged name=" + str);
a(new o(str));
}
@JavascriptInterface
public int webviewGetJBMode() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>webviewGetJBMode");
u1 u1Var = this.f17965e;
if (u1Var != null) {
return u1Var.c();
}
return 2;
}
@JavascriptInterface
public void webviewTitleChangeToString(String str) {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>webviewTitleChangeToString");
a(new g0(str));
}
@JavascriptInterface
public void withdraw() {
com.maoyanym.utils.m.a("CommonWebView", ">>>>>>>>>>>>>>>>>>>>>>>>withdraw");
a(new p());
}
}