Puzzle King v2.3.8版本的 MD5 值为:1734eb975c9d2843afa462aec387292e
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.mbridge.msdk.click;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.click.CommonJumpLoader;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.aa;
import com.mbridge.msdk.foundation.tools.ae;
import com.mbridge.msdk.foundation.tools.n;
import com.mbridge.msdk.foundation.tools.r;
import com.mbridge.msdk.foundation.tools.v;
import com.mbridge.msdk.foundation.tools.z;
import com.mbridge.msdk.out.Campaign;
import com.mbridge.msdk.out.Frame;
import com.mbridge.msdk.out.LoadingActivity;
import com.mbridge.msdk.out.NativeListener;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.safedk.android.analytics.brandsafety.BrandSafetyUtils;
import com.safedk.android.utils.Logger;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public final class a {
public static boolean a;
public static Map<String, Long> b = new HashMap();
public static Set<String> c = new HashSet();
private String d;
private long e;
private com.mbridge.msdk.foundation.db.g f;
private Context g;
private CommonJumpLoader h;
private com.mbridge.msdk.foundation.same.report.d j;
private com.mbridge.msdk.c.a k;
private boolean l;
private boolean o;
private NativeListener.NativeTrackingListener i = null;
private boolean m = false;
private boolean n = true;
public static void safedk_Context_startActivity_97cb3195734cf5c9cc3418feeafa6dd6(Context p0, Intent p1) {
Logger.d("SafeDK-Special|SafeDK: Call> Landroid/content/Context;->startActivity(Landroid/content/Intent;)V");
if (p1 == null) {
return;
}
BrandSafetyUtils.detectAdClick(p1, com.safedk.android.utils.g.o);
p0.startActivity(p1);
}
public a(Context context, String str) {
this.f = null;
this.g = null;
com.mbridge.msdk.c.a b2 = com.mbridge.msdk.c.b.a().b(str);
this.k = b2;
if (b2 == null) {
this.k = com.mbridge.msdk.c.b.a().b();
}
this.l = this.k.O();
Context applicationContext = context.getApplicationContext();
this.g = applicationContext;
this.d = str;
if (this.f == null) {
this.f = com.mbridge.msdk.foundation.db.g.a(applicationContext);
}
this.j = new com.mbridge.msdk.foundation.same.report.d(this.g);
}
public final void a(String str) {
this.d = str;
}
public final void a(NativeListener.NativeTrackingListener nativeTrackingListener) {
this.i = nativeTrackingListener;
}
public final void a(boolean z) {
this.n = z;
}
public final void a() {
try {
this.i = null;
} catch (Exception e) {
e.printStackTrace();
}
}
public final void a(CampaignEx campaignEx, NativeListener.NativeAdListener nativeAdListener) {
if (nativeAdListener != null && campaignEx != null) {
nativeAdListener.onAdClick(campaignEx);
}
a(campaignEx);
}
private boolean b(CampaignEx campaignEx) {
Long l;
if (campaignEx == null) {
return true;
}
try {
if (2 != campaignEx.getLinkType() && 3 != campaignEx.getLinkType()) {
return true;
}
String id = campaignEx.getId();
if (b == null) {
return true;
}
if (b.containsKey(id) && (l = b.get(id)) != null) {
if (l.longValue() > System.currentTimeMillis() || c.contains(campaignEx.getId())) {
return false;
}
}
b.put(campaignEx.getId(), Long.valueOf(System.currentTimeMillis() + (campaignEx.getClickTimeOutInterval() * 1000)));
return true;
} catch (Exception e) {
if (!MBridgeConstans.DEBUG) {
return true;
}
e.printStackTrace();
return true;
}
}
private void a(CampaignEx campaignEx, String str) {
if (TextUtils.isEmpty(str)) {
return;
}
a(this.g, campaignEx, this.d, str, true, false, com.mbridge.msdk.click.a.a.i);
}
public final void a(CampaignEx campaignEx) {
boolean z;
try {
if (!b(campaignEx)) {
return;
}
String noticeUrl = campaignEx.getNoticeUrl();
com.mbridge.msdk.foundation.db.c a2 = com.mbridge.msdk.foundation.db.c.a(this.f);
a2.a();
CommonJumpLoader.JumpLoaderResult b2 = a2.b(campaignEx.getId(), this.d);
if (b2 != null) {
if (b2.getNoticeurl() != null) {
b2.setNoticeurl(null);
}
campaignEx.setJumpResult(b2);
a2.a(campaignEx, this.d);
}
if (aa.a(campaignEx)) {
n.a().a(campaignEx);
if (b.d(this.g, campaignEx.getDeepLinkURL())) {
if (this.i != null) {
this.i.onStartRedirection(campaignEx, campaignEx.getClickURL());
}
a(campaignEx, noticeUrl + "&opdptype=1");
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, campaignEx.getClickURL());
return;
}
return;
}
noticeUrl = noticeUrl + "&opdptype=0";
n.a().b(campaignEx);
}
if (campaignEx.getLinkType() == 12) {
if (this.i != null) {
this.i.onStartRedirection(campaignEx, campaignEx.getClickURL());
}
a(campaignEx, noticeUrl);
a(this.g, campaignEx);
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, campaignEx.getClickURL());
return;
}
return;
}
a(campaignEx, noticeUrl);
if (!campaignEx.getUserActivation() && b.c(this.g, campaignEx.getPackageName())) {
b.e(this.g, campaignEx.getPackageName());
if (this.i != null) {
this.i.onStartRedirection(campaignEx, campaignEx.getClickURL());
}
a(campaignEx, true);
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, campaignEx.getClickURL());
z.a(this.i);
return;
}
return;
}
int linkType = campaignEx.getLinkType();
int b3 = b();
if (linkType != 8 && linkType != 9 && linkType != 4) {
z = false;
if (z) {
if (linkType == 2) {
if (!campaignEx.getClickURL().startsWith("market://") && !campaignEx.getClickURL().startsWith("https://play.google.com/")) {
a(campaignEx, false);
return;
}
if (this.i != null) {
this.i.onStartRedirection(campaignEx, campaignEx.getClickURL());
}
if (!z.a.a(this.g, campaignEx.getClickURL(), this.i)) {
a(b3, campaignEx.getClickURL(), campaignEx, this.i);
}
a(b2, campaignEx, false);
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, campaignEx.getClickURL());
return;
}
return;
}
if (linkType == 3) {
a(campaignEx, false);
return;
}
String clickURL = campaignEx.getClickURL();
if (TextUtils.isEmpty(clickURL)) {
if (this.i != null) {
this.i.onRedirectionFailed(campaignEx, clickURL);
}
a(b2, campaignEx, true);
return;
} else {
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, clickURL);
}
z.b(this.g, clickURL, this.i);
a(b2, campaignEx, true);
return;
}
}
String clickURL2 = campaignEx.getClickURL();
if (this.i != null) {
this.i.onStartRedirection(campaignEx, clickURL2);
}
if (TextUtils.isEmpty(clickURL2)) {
if (this.i != null) {
this.i.onRedirectionFailed(campaignEx, clickURL2);
}
a(b2, campaignEx, true);
return;
}
if (linkType == 8) {
z.a(this.g, clickURL2, campaignEx, this.i);
a(b2, campaignEx, false);
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, clickURL2);
return;
}
return;
}
if (linkType == 9) {
z.b(this.g, clickURL2, this.i);
a(b2, campaignEx, false);
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, clickURL2);
return;
}
return;
}
if (linkType == 4) {
if (b3 == 2) {
z.a(this.g, clickURL2, campaignEx, this.i);
} else {
z.b(this.g, clickURL2, this.i);
}
}
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, clickURL2);
}
a(b2, campaignEx, false);
return;
}
z = true;
if (z) {
}
} catch (Throwable th) {
v.a("MBridge SDK M", th.getMessage(), th);
}
}
private void a(Context context, CampaignEx campaignEx) {
if (context == null) {
com.mbridge.msdk.foundation.same.report.e.a(com.mbridge.msdk.foundation.controller.a.d().f(), campaignEx, 2, "context is null", this.d);
return;
}
boolean z = r.a() == 1;
boolean z2 = r.c(context) == 1;
if (!z || !z2) {
com.mbridge.msdk.foundation.same.report.e.a(context, campaignEx, 2, "integrated:" + z + "-hasWx:" + z2, this.d);
c(campaignEx);
return;
}
String ghId = campaignEx.getGhId();
String ghPath = campaignEx.getGhPath();
String bindId = campaignEx.getBindId();
String h = com.mbridge.msdk.foundation.controller.a.d().h();
if (!TextUtils.isEmpty(ghId)) {
try {
if (!TextUtils.isEmpty(h)) {
bindId = h;
}
Object a2 = r.a(bindId);
Class<?> cls = Class.forName("com.tencent.mm.opensdk.modelbiz.WXLaunchMiniProgram$Req");
Object newInstance = cls.newInstance();
cls.getField("userName").set(newInstance, ghId);
cls.getField("path").set(newInstance, ghPath);
cls.getField("miniprogramType").set(newInstance, cls.getField("MINIPTOGRAM_TYPE_RELEASE").get(null));
Class.forName("com.tencent.mm.opensdk.openapi.IWXAPI").getMethod("sendReq", Class.forName("com.tencent.mm.opensdk.modelbase.BaseReq")).invoke(a2, newInstance);
com.mbridge.msdk.foundation.same.report.e.a(context, campaignEx, 1, "", this.d);
return;
} catch (Throwable th) {
com.mbridge.msdk.foundation.same.report.e.a(context, campaignEx, 2, th.getMessage(), this.d);
c(campaignEx);
return;
}
}
c(campaignEx);
com.mbridge.msdk.foundation.same.report.e.a(context, campaignEx, 2, "ghid is empty", this.d);
}
private void c(CampaignEx campaignEx) {
if (b() == 2) {
z.a(this.g, campaignEx.getClickURL(), campaignEx, this.i);
} else {
z.b(this.g, campaignEx.getClickURL(), this.i);
}
}
public static void a(Context context, CampaignEx campaignEx, String str, String str2, boolean z, boolean z2) {
if (context == null) {
return;
}
new CommonJumpLoader(context.getApplicationContext()).a(str, campaignEx, new d() {
@Override
public final void a(Object obj) {
}
@Override
public final void a(Object obj, String str3) {
}
@Override
public final void b(Object obj) {
}
}, str2, z, z2, com.mbridge.msdk.click.a.a.f);
}
public static void a(Context context, CampaignEx campaignEx, String str, String str2, boolean z, boolean z2, int i) {
if (context == null) {
return;
}
new CommonJumpLoader(context.getApplicationContext()).a(str, campaignEx, new d() {
@Override
public final void a(Object obj) {
}
@Override
public final void a(Object obj, String str3) {
}
@Override
public final void b(Object obj) {
}
}, str2, z, z2, i);
}
public static void a(Context context, CampaignEx campaignEx, String str, String[] strArr, boolean z, boolean z2) {
if (context == null || campaignEx == null || TextUtils.isEmpty(str) || strArr == null) {
return;
}
CommonJumpLoader commonJumpLoader = new CommonJumpLoader(context.getApplicationContext());
for (String str2 : strArr) {
commonJumpLoader.a(str, campaignEx, new d() {
@Override
public final void a(Object obj) {
}
@Override
public final void a(Object obj, String str3) {
}
@Override
public final void b(Object obj) {
}
}, str2, z, z2, com.mbridge.msdk.click.a.a.f);
}
}
private void a(final CampaignEx campaignEx, final boolean z) {
final boolean z2;
boolean z3;
try {
this.e = System.currentTimeMillis();
if (this.i == null || z) {
z2 = true;
} else {
this.i.onStartRedirection(campaignEx, campaignEx.getClickURL());
z2 = !this.i.onInterceptDefaultLoadingDialog();
}
final boolean z4 = false;
this.o = false;
if (campaignEx.getJumpResult() != null) {
if (!z) {
a(campaignEx, campaignEx.getJumpResult(), true, this.m);
}
this.o = true;
this.m = false;
z3 = false;
} else {
z3 = true;
}
if (!com.mbridge.msdk.foundation.db.c.a(this.f).a(campaignEx.getId(), this.d) || campaignEx.getJumpResult() == null) {
com.mbridge.msdk.foundation.db.c a2 = com.mbridge.msdk.foundation.db.c.a(this.f);
a2.a();
CommonJumpLoader.JumpLoaderResult b2 = a2.b(campaignEx.getId(), this.d);
if (b2 != null && !z) {
campaignEx.setJumpResult(b2);
if (z3) {
a(campaignEx, b2, z3, this.m);
this.o = true;
this.m = false;
}
z4 = z3;
} else {
if (campaignEx.getClick_mode().equals("6") && !campaignEx.getPackageName().isEmpty() && campaignEx.getLinkType() == 2 && !z) {
z.a.a(this.g, "market://details?id=" + campaignEx.getPackageName(), this.i);
if (this.i != null && z3) {
this.i.onDismissLoading(campaignEx);
this.i.onFinishRedirection(campaignEx, null);
}
this.o = true;
z3 = false;
}
if (z) {
this.o = true;
this.m = false;
}
z4 = z3;
}
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public final void run() {
if (z2 && !a.a && !a.this.o && MBridgeConstans.NATIVE_SHOW_LOADINGPAGER && !z) {
a.a(a.this, campaignEx);
}
if (z2 || a.this.i == null || a.a || a.this.o || !MBridgeConstans.NATIVE_SHOW_LOADINGPAGER) {
return;
}
a.this.i.onShowLoading(campaignEx);
}
});
if (this.h != null) {
this.h.a();
}
if (c != null && c.contains(campaignEx.getId())) {
if (this.i != null) {
this.i.onDismissLoading(campaignEx);
this.i.onFinishRedirection(campaignEx, campaignEx.getClickURL());
return;
}
return;
}
if (c != null) {
c.add(campaignEx.getId());
}
CommonJumpLoader commonJumpLoader = new CommonJumpLoader(this.g);
this.h = commonJumpLoader;
commonJumpLoader.a(this.d, campaignEx, new d() {
@Override
public final void a(Object obj) {
}
@Override
public final void b(Object obj) {
if (a.c != null) {
a.c.remove(campaignEx.getId());
}
if (obj instanceof CommonJumpLoader.JumpLoaderResult) {
CommonJumpLoader.JumpLoaderResult jumpLoaderResult = (CommonJumpLoader.JumpLoaderResult) obj;
campaignEx.setJumpResult(jumpLoaderResult);
a aVar = a.this;
aVar.a(campaignEx, jumpLoaderResult, z4, aVar.m);
if (jumpLoaderResult.isjumpDone()) {
com.mbridge.msdk.foundation.db.c.a(a.this.f).a(campaignEx, a.this.d);
}
a.a(a.this, z2, campaignEx);
}
}
@Override
public final void a(Object obj, String str) {
if (a.c != null) {
a.c.remove(campaignEx.getId());
}
if (obj instanceof CommonJumpLoader.JumpLoaderResult) {
a.this.a((CommonJumpLoader.JumpLoaderResult) obj, campaignEx, true);
}
if (a.this.i != null) {
a.this.i.onRedirectionFailed(campaignEx, str);
}
a.a(a.this, z2, campaignEx);
}
});
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void a(CommonJumpLoader.JumpLoaderResult jumpLoaderResult, CampaignEx campaignEx, int i, boolean z) {
if (campaignEx == null || jumpLoaderResult == null) {
return;
}
try {
long currentTimeMillis = System.currentTimeMillis() - this.e;
com.mbridge.msdk.foundation.entity.d dVar = new com.mbridge.msdk.foundation.entity.d();
int o = r.o(this.g);
dVar.a(o);
dVar.a(r.a(this.g, o));
dVar.j(campaignEx.getRequestId());
dVar.k(campaignEx.getRequestIdNotice());
dVar.d(i);
dVar.i(currentTimeMillis + "");
dVar.h(campaignEx.getId());
dVar.f(jumpLoaderResult.getType());
if (!TextUtils.isEmpty(jumpLoaderResult.getUrl())) {
dVar.g(URLEncoder.encode(jumpLoaderResult.getUrl(), "utf-8"));
}
dVar.c((this.e / 1000) + "");
dVar.b(Integer.parseInt(campaignEx.getLandingType()));
dVar.c(campaignEx.getLinkType());
dVar.b(this.d);
dVar.f(jumpLoaderResult.getType());
if (!TextUtils.isEmpty(jumpLoaderResult.getUrl())) {
dVar.g(URLEncoder.encode(jumpLoaderResult.getUrl(), "utf-8"));
}
if (this.l) {
dVar.e(jumpLoaderResult.getStatusCode());
if (!TextUtils.isEmpty(jumpLoaderResult.getHeader())) {
dVar.e(URLEncoder.encode(jumpLoaderResult.getHeader(), "utf-8"));
}
if (!TextUtils.isEmpty(jumpLoaderResult.getContent())) {
dVar.f(URLEncoder.encode(jumpLoaderResult.getContent(), C.UTF8_NAME));
}
if (!TextUtils.isEmpty(jumpLoaderResult.getExceptionMsg())) {
dVar.d(URLEncoder.encode(jumpLoaderResult.getExceptionMsg(), "utf-8"));
}
}
if (z) {
this.j.a("click_jump_error", dVar, this.d);
return;
}
ArrayList arrayList = new ArrayList();
arrayList.add(dVar);
String a2 = com.mbridge.msdk.foundation.entity.d.a(arrayList);
if (ae.b(a2)) {
if (com.mbridge.msdk.foundation.same.report.b.a().c()) {
com.mbridge.msdk.foundation.same.report.b.a().a(a2);
} else {
new com.mbridge.msdk.foundation.same.report.d(this.g, 0).a("click_jump_success", a2, (String) null, (Frame) null);
}
}
} catch (Throwable th) {
th.printStackTrace();
}
}
public final void a(Campaign campaign, String str) {
try {
if (!TextUtils.isEmpty(str) && campaign != null) {
CampaignEx campaignEx = campaign instanceof CampaignEx ? (CampaignEx) campaign : null;
if ((!str.startsWith("market://") && !str.startsWith("https://play.google.com/")) || z.a.a(this.g, str, this.i) || campaignEx == null) {
return;
}
if (!TextUtils.isEmpty(campaignEx.getPackageName())) {
z.a.a(this.g, "market://details?id=" + campaignEx.getPackageName(), this.i);
return;
}
if (b() == 2) {
z.a(this.g, campaignEx.getClickURL(), campaignEx, this.i);
} else {
z.b(this.g, campaignEx.getClickURL(), this.i);
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
public void a(CommonJumpLoader.JumpLoaderResult jumpLoaderResult, CampaignEx campaignEx, boolean z) {
a(jumpLoaderResult, campaignEx, 1, z);
}
private void a(int i, String str, CampaignEx campaignEx, NativeListener.NativeTrackingListener nativeTrackingListener) {
try {
if (!TextUtils.isEmpty(str)) {
if (i == 2) {
z.a(this.g, str, campaignEx, nativeTrackingListener);
} else {
z.b(this.g, str, nativeTrackingListener);
}
}
} catch (Throwable th) {
v.a("MBridge SDK M", th.getMessage(), th);
}
}
private boolean a(CampaignEx campaignEx, CommonJumpLoader.JumpLoaderResult jumpLoaderResult, boolean z, int i) {
boolean z2 = false;
if (z) {
try {
int parseInt = Integer.parseInt(campaignEx.getLandingType());
if (parseInt == 1) {
z.b(this.g, jumpLoaderResult.getUrl(), this.i);
} else if (parseInt == 2) {
z.a(this.g, jumpLoaderResult.getUrl(), campaignEx, this.i);
} else if (campaignEx.getPackageName() != null) {
if (!z.a.a(this.g, "market://details?id=" + campaignEx.getPackageName(), this.i)) {
a(i, jumpLoaderResult.getUrl(), campaignEx, this.i);
}
} else {
a(i, jumpLoaderResult.getUrl(), campaignEx, this.i);
}
z2 = true;
} catch (Throwable th) {
v.a("MBridge SDK M", th.getMessage(), th);
}
}
if (z2) {
a(jumpLoaderResult, campaignEx, true);
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
}
} else {
a(jumpLoaderResult, campaignEx, true);
if (this.i != null && z) {
this.i.onRedirectionFailed(campaignEx, jumpLoaderResult.getUrl());
}
}
return z2;
}
private boolean a(CampaignEx campaignEx, CommonJumpLoader.JumpLoaderResult jumpLoaderResult, boolean z) {
boolean z2 = false;
if (z) {
try {
z.b(this.g, campaignEx.getClickURL(), this.i);
z2 = true;
} catch (Throwable th) {
v.a("MBridge SDK M", th.getMessage(), th);
}
}
a(jumpLoaderResult, campaignEx, true);
if (z2) {
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
}
} else if (this.i != null) {
this.i.onRedirectionFailed(campaignEx, jumpLoaderResult.getUrl());
}
return z2;
}
public void a(CampaignEx campaignEx, CommonJumpLoader.JumpLoaderResult jumpLoaderResult, boolean z, boolean z2) {
try {
if (this.n) {
if (campaignEx != null && jumpLoaderResult != null) {
int b2 = b();
int code = jumpLoaderResult.getCode();
if (TextUtils.isEmpty(jumpLoaderResult.getUrl()) && z) {
int linkType = campaignEx.getLinkType();
if (linkType == 2) {
a(campaignEx, jumpLoaderResult, z, b());
return;
}
if (linkType == 3) {
a(campaignEx, jumpLoaderResult, z);
return;
}
z.b(this.g, campaignEx.getClickURL(), this.i);
a(jumpLoaderResult, campaignEx, true);
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
return;
}
return;
}
if (code == 1) {
if (!TextUtils.isEmpty(campaignEx.getPackageName()) && !TextUtils.isEmpty(jumpLoaderResult.getUrl()) && jumpLoaderResult.getUrl().contains(campaignEx.getPackageName()) && z) {
if (!z.a.a(this.g, jumpLoaderResult.getUrl(), this.i)) {
a(b2, jumpLoaderResult.getUrl(), campaignEx, this.i);
}
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
}
} else {
if (z) {
if (!TextUtils.isEmpty(campaignEx.getPackageName())) {
}
a(b2, jumpLoaderResult.getUrl(), campaignEx, this.i);
}
if (this.i != null && z) {
this.i.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
}
}
} else if (code == 3) {
if (z) {
z.b(this.g, jumpLoaderResult.getUrl(), this.i);
}
if (this.i != null && z) {
this.i.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
}
} else if (z) {
if (3 == campaignEx.getLinkType()) {
a(campaignEx, jumpLoaderResult, z);
return;
} else if (2 == campaignEx.getLinkType()) {
a(campaignEx, jumpLoaderResult, z, b());
return;
} else {
z.b(this.g, jumpLoaderResult.getUrl(), this.i);
if (this.i != null) {
this.i.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
}
}
}
if (a(campaignEx.getLinkType(), jumpLoaderResult.getUrl())) {
a(jumpLoaderResult, campaignEx, false);
} else {
a(jumpLoaderResult, campaignEx, true);
}
if (this.i == null || z || !z2) {
return;
}
this.i.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
private int b() {
try {
if (this.k != null) {
return this.k.J();
}
return 1;
} catch (Exception e) {
e.printStackTrace();
return 1;
}
}
private boolean a(int i, String str) {
boolean z = true;
boolean z2 = false;
try {
if (i == 2) {
if (z.a.a(str)) {
z2 = z;
return z2;
}
z = false;
z2 = z;
return z2;
}
} catch (Exception e) {
e.printStackTrace();
return z2;
}
}
static void a(a aVar, CampaignEx campaignEx) {
try {
Intent intent = new Intent(aVar.g, (Class<?>) LoadingActivity.class);
intent.setFlags(268435456);
intent.putExtra(CampaignEx.JSON_KEY_ICON_URL, campaignEx.getIconUrl());
safedk_Context_startActivity_97cb3195734cf5c9cc3418feeafa6dd6(aVar.g, intent);
} catch (Exception e) {
v.a("MBridge SDK M", "Exception", e);
}
}
static void a(a aVar, final boolean z, final Campaign campaign) {
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public final void run() {
if (z && !a.a && MBridgeConstans.NATIVE_SHOW_LOADINGPAGER) {
a.f(a.this);
}
if (a.this.i == null || a.a || !MBridgeConstans.NATIVE_SHOW_LOADINGPAGER) {
return;
}
a.this.i.onDismissLoading(campaign);
}
});
}
static void f(a aVar) {
try {
Intent intent = new Intent();
intent.setAction("ExitApp");
aVar.g.sendBroadcast(intent);
} catch (Exception e) {
v.a("MBridge SDK M", "Exception", e);
}
}
}