正在查看: 小柿子 v1.3.8 应用的 MBInterstitialActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 小柿子 v1.3.8 应用的 MBInterstitialActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mbridge.msdk.interstitial.view;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.ColorDrawable;
import android.net.http.SslError;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.Base64;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.SslErrorHandler;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import com.mbridge.msdk.activity.MBBaseActivity;
import com.mbridge.msdk.c.l;
import com.mbridge.msdk.foundation.controller.c;
import com.mbridge.msdk.foundation.db.j;
import com.mbridge.msdk.foundation.db.m;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.entity.q;
import com.mbridge.msdk.foundation.same.report.h;
import com.mbridge.msdk.foundation.tools.ab;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.foundation.tools.ap;
import com.mbridge.msdk.foundation.tools.x;
import com.mbridge.msdk.interstitial.c.a;
import com.mbridge.msdk.mbsignalcommon.confirmation.e;
import com.mbridge.msdk.mbsignalcommon.mraid.b;
import com.mbridge.msdk.mbsignalcommon.mraid.d;
import com.mbridge.msdk.mbsignalcommon.windvane.WindVaneWebView;
import com.mbridge.msdk.mbsignalcommon.windvane.i;
import com.mbridge.msdk.out.Campaign;
import com.mbridge.msdk.out.NativeListener;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.sigmob.sdk.base.mta.PointCategory;
import java.io.File;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.json.JSONObject;
public class MBInterstitialActivity extends MBBaseActivity implements b {
public static final String INTENT_CAMAPIGN = "campaign";
public static final String INTENT_UNIT_ID = "unitId";
public static final long WATI_JS_INVOKE = 2000;
public static final long WEB_LOAD_TIME = 15000;
private CampaignEx e;
private WindVaneWebView f;
private ImageView f44g;
private a.c h;
private boolean i;
private d j;
private long k;
private boolean l;
private boolean m;
public ProgressBar mProgressBar;
public String mUnitid;
private com.mbridge.msdk.click.b o;
private boolean c = false;
private boolean d = false;
public boolean mIsMBPage = false;
private Handler n = new Handler() {
@Override
public final void handleMessage(Message message) {
}
};
public Runnable a = new Runnable() {
@Override
public final void run() {
af.b("MBInterstitialActivity", "load page timeOut");
if (MBInterstitialActivity.this.d) {
af.b("MBInterstitialActivity", "mLoadTimeTask 已经打开非mb的页面了 return ");
return;
}
MBInterstitialActivity.this.c = true;
if (MBInterstitialActivity.this.h != null) {
MBInterstitialActivity.this.h.a("load page timeout");
if (MBInterstitialActivity.this.f != null) {
MBInterstitialActivity.this.f.setVisibility(8);
MBInterstitialActivity.this.f.setWebViewListener(null);
MBInterstitialActivity.this.f.release();
}
MBInterstitialActivity.this.hideLoading();
}
}
};
public Runnable b = new Runnable() {
@Override
public final void run() {
af.b("MBInterstitialActivity", "mWaitJsInvokeTask 开始执行run方法");
MBInterstitialActivity mBInterstitialActivity = MBInterstitialActivity.this;
if (mBInterstitialActivity.mIsMBPage) {
af.c("MBInterstitialActivity", "mWaitJsInvokeTask getinfo 已调用 return");
return;
}
if (mBInterstitialActivity.e != null && MBInterstitialActivity.this.e.isMraid()) {
MBInterstitialActivity.h(MBInterstitialActivity.this);
}
com.mbridge.msdk.interstitial.b.a.a().a(MBInterstitialActivity.this.e, MBInterstitialActivity.this.mUnitid);
if (MBInterstitialActivity.this.c) {
af.c("MBInterstitialActivity", "mWaitJsInvokeTask webview 已加载超时 return");
return;
}
MBInterstitialActivity.this.d = true;
MBInterstitialActivity.this.hideLoading();
MBInterstitialActivity.this.showWebView();
af.b("MBInterstitialActivity", "mWaitJsInvokeTask 最终显示非mb的页面 ");
}
};
public static void e(MBInterstitialActivity mBInterstitialActivity) {
CampaignEx campaignEx = mBInterstitialActivity.e;
if (campaignEx == null || !campaignEx.isMraid()) {
return;
}
int i = mBInterstitialActivity.getResources().getConfiguration().orientation;
String str = i != 0 ? i != 1 ? i != 2 ? "UNDEFINED" : "landscape" : "portrait" : "undefined";
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("orientation", str);
jSONObject.put(PointCategory.LOCKED, "true");
} catch (Exception e) {
e.printStackTrace();
}
float t = ab.t(mBInterstitialActivity);
float r = ab.r(mBInterstitialActivity);
DisplayMetrics displayMetrics = new DisplayMetrics();
mBInterstitialActivity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
float f = displayMetrics.widthPixels;
float f5 = displayMetrics.heightPixels;
HashMap hashMap = new HashMap();
hashMap.put("placementType", "Interstitial");
hashMap.put("state", "default");
hashMap.put("viewable", "true");
hashMap.put("currentAppOrientation", jSONObject);
com.mbridge.msdk.mbsignalcommon.mraid.a.a().b(mBInterstitialActivity.f, t, r);
com.mbridge.msdk.mbsignalcommon.mraid.a.a().c(mBInterstitialActivity.f, f, f5);
com.mbridge.msdk.mbsignalcommon.mraid.a.a().a(mBInterstitialActivity.f, hashMap);
com.mbridge.msdk.mbsignalcommon.mraid.a.a().a(mBInterstitialActivity.f, mBInterstitialActivity.j.a());
com.mbridge.msdk.mbsignalcommon.mraid.a.a().a(mBInterstitialActivity.f);
}
public static void h(MBInterstitialActivity mBInterstitialActivity) {
List<String> pv_urls;
try {
c.q().a(mBInterstitialActivity);
if (!TextUtils.isEmpty(mBInterstitialActivity.e.getImpressionURL())) {
Context c = c.q().c();
CampaignEx campaignEx = mBInterstitialActivity.e;
com.mbridge.msdk.click.b.a(c, campaignEx, mBInterstitialActivity.mUnitid, campaignEx.getImpressionURL(), false, true, com.mbridge.msdk.click.a.a.g);
}
if (!TextUtils.isEmpty(mBInterstitialActivity.e.getOnlyImpressionURL())) {
Context c5 = c.q().c();
CampaignEx campaignEx2 = mBInterstitialActivity.e;
com.mbridge.msdk.click.b.a(c5, campaignEx2, mBInterstitialActivity.mUnitid, campaignEx2.getOnlyImpressionURL(), false, true, com.mbridge.msdk.click.a.a.h);
}
com.mbridge.msdk.foundation.same.a.d.a(mBInterstitialActivity.mUnitid, mBInterstitialActivity.e, "interstitial");
Runnable runnable = new Runnable() {
@Override
public final void run() {
m.a(j.a(MBInterstitialActivity.this)).a(MBInterstitialActivity.this.e.getId());
}
};
com.mbridge.msdk.foundation.controller.d.a();
com.mbridge.msdk.foundation.same.f.b.b().execute(runnable);
CampaignEx campaignEx3 = mBInterstitialActivity.e;
if (campaignEx3 == null || (pv_urls = campaignEx3.getPv_urls()) == null || pv_urls.size() <= 0) {
return;
}
Iterator<String> it = pv_urls.iterator();
while (it.hasNext()) {
com.mbridge.msdk.click.b.a(c.q().c(), mBInterstitialActivity.e, mBInterstitialActivity.mUnitid, it.next(), false, true);
}
} catch (Throwable th) {
af.a("MBInterstitialActivity", th.getMessage());
}
}
public static void j(MBInterstitialActivity mBInterstitialActivity) {
try {
q qVar = new q();
qVar.f(mBInterstitialActivity.e.getRequestId());
qVar.g(mBInterstitialActivity.e.getRequestIdNotice());
qVar.e(mBInterstitialActivity.e.getId());
qVar.d(mBInterstitialActivity.e.isMraid() ? q.a : q.b);
h.d(qVar, mBInterstitialActivity.getApplicationContext(), mBInterstitialActivity.mUnitid);
} catch (Exception e) {
e.printStackTrace();
}
}
public static void k(MBInterstitialActivity mBInterstitialActivity) {
CampaignEx campaignEx = mBInterstitialActivity.e;
if (campaignEx == null || !campaignEx.isMraid()) {
return;
}
mBInterstitialActivity.f.post(new Runnable() {
@Override
public final void run() {
com.mbridge.msdk.mbsignalcommon.mraid.a.a().a(MBInterstitialActivity.this.f, MBInterstitialActivity.this.f.getLeft(), MBInterstitialActivity.this.f.getTop(), MBInterstitialActivity.this.f.getWidth(), MBInterstitialActivity.this.f.getHeight());
com.mbridge.msdk.mbsignalcommon.mraid.a.a().b(MBInterstitialActivity.this.f, MBInterstitialActivity.this.f.getLeft(), MBInterstitialActivity.this.f.getTop(), MBInterstitialActivity.this.f.getWidth(), MBInterstitialActivity.this.f.getHeight());
}
});
}
public void clickTracking(final boolean z, final String str) {
this.o = new com.mbridge.msdk.click.b(getApplicationContext(), this.mUnitid);
try {
CampaignEx campaignEx = this.e;
if (campaignEx != null && campaignEx.needShowIDialog()) {
com.mbridge.msdk.widget.dialog.a aVar = new com.mbridge.msdk.widget.dialog.a() {
@Override
public final void a() {
MBInterstitialActivity.this.a(z, str);
}
@Override
public final void b() {
}
@Override
public final void c() {
a();
}
@Override
public final void d() {
}
};
if (com.mbridge.msdk.click.d.a(this.e) && this.e.needShowIDialog()) {
if (this.o.b(this.e)) {
onIntersClick();
return;
} else {
e.a().a("", this.e, (Context) this, this.mUnitid, aVar);
return;
}
}
}
} catch (Throwable th) {
af.a("MBInterstitialActivity", th.getMessage());
}
a(z, str);
}
@Override
public void close() {
finish();
}
@Override
public void expand(String str, boolean z) {
}
public void finish() {
super/*android.app.Activity*/.finish();
if (!this.l) {
c();
}
if (this.m) {
return;
}
reportPlayableClosed();
}
public l getIntersUnitSetting() {
try {
if (TextUtils.isEmpty(this.mUnitid)) {
return null;
}
l d = com.mbridge.msdk.c.h.a().d(c.q().k(), this.mUnitid);
if (d != null) {
return d;
}
af.c("MBInterstitialActivity", "获取默认的unitsetting");
return l.d(this.mUnitid);
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
@Override
public CampaignEx getMraidCampaign() {
return this.e;
}
public void goneWebView() {
try {
runOnUiThread(new Runnable() {
@Override
public final void run() {
if (MBInterstitialActivity.this.f != null) {
MBInterstitialActivity.this.f.setVisibility(8);
}
}
});
} catch (Exception e) {
e.printStackTrace();
}
}
public void hideLoading() {
try {
runOnUiThread(new Runnable() {
@Override
public final void run() {
ProgressBar progressBar = MBInterstitialActivity.this.mProgressBar;
if (progressBar != null) {
progressBar.setVisibility(8);
}
}
});
} catch (Exception e) {
e.printStackTrace();
}
}
public void initView() {
this.f = (WindVaneWebView) findViewById(x.a(getApplicationContext(), "mbridge_interstitial_wv", "id"));
this.mProgressBar = (ProgressBar) findViewById(x.a(getApplicationContext(), "mbridge_interstitial_pb", "id"));
this.f44g = (ImageView) findViewById(x.a(getApplicationContext(), "mbridge_interstitial_iv_close", "id"));
}
public void onCreate(Bundle bundle) {
CampaignEx campaignEx;
super.onCreate(bundle);
try {
int a = x.a(getApplicationContext(), "mbridge_interstitial_activity", TtmlNode.TAG_LAYOUT);
if (a == -1) {
a();
b();
a.c cVar = this.h;
if (cVar != null) {
cVar.a("not found resource");
}
finish();
return;
}
setContentView(a);
initView();
a();
this.f44g.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
MBInterstitialActivity.this.finish();
}
});
if (this.f != null && (campaignEx = this.e) != null) {
com.mbridge.msdk.foundation.same.g.a aVar = new com.mbridge.msdk.foundation.same.g.a(campaignEx);
aVar.a(this.e.getAppName());
this.f.setCampaignId(this.e.getId());
this.f.setDownloadListener(aVar);
}
b();
try {
CampaignEx campaignEx2 = this.e;
if (campaignEx2 == null || (TextUtils.isEmpty(campaignEx2.getHtmlUrl()) && !this.e.isMraid())) {
a.c cVar2 = this.h;
if (cVar2 != null) {
cVar2.a("htmlurl is null");
}
} else {
af.c("MBInterstitialActivity", "url:" + this.e.getHtmlUrl());
goneWebView();
this.f.setWebViewListener(new com.mbridge.msdk.mbsignalcommon.b.b() {
@Override
public final void a(WebView webView, int i) {
}
@Override
public final void a(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
af.b("WindVaneWebView", "onReceivedSslError");
MBInterstitialActivity.this.i = true;
}
@Override
public final void b(WebView webView, int i) {
}
@Override
public final boolean b(WebView webView, String str) {
af.b("WindVaneWebView", "shouldOverrideUrlLoading");
return true;
}
@Override
public final void c(WebView webView, int i) {
}
@Override
public final void a(WebView webView, int i, String str, String str2) {
try {
MBInterstitialActivity.this.i = true;
af.b("WindVaneWebView", "onReceivedError");
if (MBInterstitialActivity.this.h != null) {
MBInterstitialActivity.this.h.a(str);
}
MBInterstitialActivity.a(MBInterstitialActivity.this, 3, str);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public final void a(WebView webView, String str, Bitmap bitmap) {
af.c("WindVaneWebView", "onPageStarted");
}
@Override
public final void a(WebView webView, String str) {
try {
if (MBInterstitialActivity.this.i) {
return;
}
MBInterstitialActivity.a(MBInterstitialActivity.this, 1, "");
af.b("WindVaneWebView", "onPageFinished");
MBInterstitialActivity mBInterstitialActivity = MBInterstitialActivity.this;
if (mBInterstitialActivity.a != null && mBInterstitialActivity.n != null) {
MBInterstitialActivity.this.n.removeCallbacks(MBInterstitialActivity.this.a);
}
if (MBInterstitialActivity.this.h != null) {
MBInterstitialActivity.this.h.a();
}
MBInterstitialActivity mBInterstitialActivity2 = MBInterstitialActivity.this;
if (!mBInterstitialActivity2.mIsMBPage) {
mBInterstitialActivity2.n.postDelayed(MBInterstitialActivity.this.b, 2000L);
af.b("WindVaneWebView", "不是mb页面 getinfo还没调用 2秒后执行task");
} else {
af.b("WindVaneWebView", "是mb页面 getinfo已调用 不做处理");
}
MBInterstitialActivity.e(MBInterstitialActivity.this);
} catch (Exception e) {
e.printStackTrace();
if (MBInterstitialActivity.this.h != null) {
MBInterstitialActivity.this.h.a("load page failed");
}
}
}
});
String htmlUrl = this.e.getHtmlUrl();
if (this.e.isMraid()) {
File file = new File(this.e.getMraid());
if (file.exists() && file.isFile() && file.canRead()) {
htmlUrl = "file:////" + this.e.getMraid();
}
}
this.k = System.currentTimeMillis();
this.f.loadUrl(htmlUrl);
this.n.postDelayed(this.a, WEB_LOAD_TIME);
}
} catch (Exception e) {
e.printStackTrace();
}
c.q().a(this);
com.mbridge.msdk.foundation.d.b.a().a(this.mUnitid, this, (ViewGroup) null, (ViewGroup.LayoutParams) null, new com.mbridge.msdk.foundation.d.a() {
public final void a() {
String str;
MBInterstitialActivity.this.onPause();
try {
JSONObject jSONObject = new JSONObject();
if (c.q().c() != null) {
jSONObject.put("status", 1);
}
str = jSONObject.toString();
} catch (Throwable th) {
af.b("MBInterstitialActivity", th.getMessage(), th);
str = "";
}
i.a().a((WebView) MBInterstitialActivity.this.f, "onFeedbackAlertStatusNotify", Base64.encodeToString(str.getBytes(), 2));
}
public final void b() {
String str;
MBInterstitialActivity.this.onResume();
try {
JSONObject jSONObject = new JSONObject();
if (c.q().c() != null) {
jSONObject.put("status", 2);
}
str = jSONObject.toString();
} catch (Throwable th) {
af.b("MBInterstitialActivity", th.getMessage(), th);
str = "";
}
i.a().a((WebView) MBInterstitialActivity.this.f, "onFeedbackAlertStatusNotify", Base64.encodeToString(str.getBytes(), 2));
}
public final void a(String str) {
String str2;
MBInterstitialActivity.this.onResume();
try {
JSONObject jSONObject = new JSONObject();
if (c.q().c() != null) {
jSONObject.put("status", 2);
}
str2 = jSONObject.toString();
} catch (Throwable th) {
af.b("MBInterstitialActivity", th.getMessage(), th);
str2 = "";
}
i.a().a((WebView) MBInterstitialActivity.this.f, "onFeedbackAlertStatusNotify", Base64.encodeToString(str2.getBytes(), 2));
}
});
this.e.setCampaignUnitId(this.mUnitid);
com.mbridge.msdk.foundation.d.b.a().a(this.mUnitid, this.e);
} catch (Exception e5) {
e5.printStackTrace();
}
}
public void onDestroy() {
super.onDestroy();
try {
a.c cVar = this.h;
if (cVar != null) {
cVar.b();
}
com.mbridge.msdk.click.b bVar = this.o;
if (bVar != null) {
bVar.a(false);
this.o.a((NativeListener.NativeTrackingListener) null);
this.o.a();
}
d dVar = this.j;
if (dVar != null) {
dVar.d();
}
if (!this.l) {
c();
}
if (a.e != null && !TextUtils.isEmpty(this.mUnitid)) {
a.e.remove(this.mUnitid);
}
this.h = null;
com.mbridge.msdk.foundation.d.b.a().c(this.mUnitid);
} catch (Exception e) {
e.printStackTrace();
}
}
public void onIntersClick() {
try {
a.c cVar = this.h;
if (cVar != null) {
cVar.c();
}
} catch (Exception e) {
e.printStackTrace();
}
}
public void onPause() {
super/*android.app.Activity*/.onPause();
CampaignEx campaignEx = this.e;
if (campaignEx == null || !campaignEx.isMraid()) {
return;
}
com.mbridge.msdk.mbsignalcommon.mraid.a.a().b(this.f, "false");
}
public void onResume() {
super.onResume();
CampaignEx campaignEx = this.e;
if (campaignEx == null || !campaignEx.isMraid()) {
return;
}
com.mbridge.msdk.mbsignalcommon.mraid.a.a().b(this.f, "true");
}
@Override
public void open(String str) {
if (!TextUtils.isEmpty(str)) {
this.e.setClickURL(str);
}
clickTracking(true, str);
}
public void reportPlayableClosed() {
if (this.e != null) {
q qVar = new q("2000061", this.e.getId(), this.e.getRequestId(), this.e.getRequestIdNotice(), this.mUnitid, ab.w(c.q().c()));
qVar.d(this.e.isMraid() ? q.a : q.b);
h.b(qVar, c.q().c(), this.mUnitid);
this.m = true;
}
}
public void setTopControllerPadding(int i, int i5, int i6, int i7, int i8) {
int a = ak.a((Context) this, 10.0f);
if (i5 <= 0) {
i5 = a;
}
if (i6 <= 0) {
i6 = a;
}
if (i7 <= 0) {
i7 = a;
}
if (i8 <= 0) {
i8 = a;
}
if (this.f44g != null) {
int a5 = ak.a((Context) this, 25.0f);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(a5, a5);
layoutParams.addRule(11);
layoutParams.setMargins(i5, i7, i6, i8);
this.f44g.setLayoutParams(layoutParams);
}
}
public void showLoading() {
try {
runOnUiThread(new Runnable() {
@Override
public final void run() {
ProgressBar progressBar = MBInterstitialActivity.this.mProgressBar;
if (progressBar != null) {
progressBar.setVisibility(0);
}
}
});
} catch (Exception e) {
e.printStackTrace();
}
}
public void showWebView() {
runOnUiThread(new Runnable() {
@Override
public final void run() {
try {
if (MBInterstitialActivity.this.f != null) {
MBInterstitialActivity.this.f.setVisibility(0);
if (MBInterstitialActivity.this.e.isMraid()) {
MBInterstitialActivity.j(MBInterstitialActivity.this);
}
MBInterstitialActivity.k(MBInterstitialActivity.this);
}
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
@Override
public void unload() {
close();
}
@Override
public void useCustomClose(boolean z) {
if (z) {
this.f44g.setImageDrawable(new ColorDrawable(0));
} else {
this.f44g.setImageResource(x.a(getApplicationContext(), "mbridge_interstitial_close", "drawable"));
}
}
private void b() {
try {
if (a.e == null || TextUtils.isEmpty(this.mUnitid) || !a.e.containsKey(this.mUnitid)) {
return;
}
this.h = a.e.get(this.mUnitid);
af.c("MBInterstitialActivity", "mShowIntersInnerListener 初始化成功");
} catch (Exception e) {
e.printStackTrace();
}
}
private void c() {
com.mbridge.msdk.foundation.same.report.i iVar = new com.mbridge.msdk.foundation.same.report.i(getApplicationContext());
CampaignEx campaignEx = this.e;
if (campaignEx != null) {
iVar.b(campaignEx.getRequestId(), this.e.getRequestIdNotice(), this.e.getId(), this.mUnitid, com.mbridge.msdk.mbsignalcommon.mraid.c.a(this.e.getId()), this.e.isBidCampaign());
com.mbridge.msdk.mbsignalcommon.mraid.c.b(this.e.getId());
this.l = true;
}
}
private void a() {
Intent intent = getIntent();
if (intent != null) {
this.mUnitid = intent.getStringExtra("unitId");
this.e = (CampaignEx) intent.getSerializableExtra(INTENT_CAMAPIGN);
}
CampaignEx campaignEx = this.e;
if (campaignEx == null || !campaignEx.isMraid()) {
return;
}
d dVar = new d(this);
this.j = dVar;
dVar.c();
this.j.a(new d.b() {
@Override
public final void a(double d) {
af.b("MBInterstitialActivity", "volume is : " + d);
com.mbridge.msdk.mbsignalcommon.mraid.a.a().a(MBInterstitialActivity.this.f, d);
}
});
}
public void a(boolean z, String str) {
try {
if (this.e != null && !ap.a(this.mUnitid)) {
onIntersClick();
this.o.a(new NativeListener.NativeTrackingListener() {
@Override
public final void onDismissLoading(Campaign campaign) {
}
@Override
public final void onDownloadFinish(Campaign campaign) {
}
@Override
public final void onDownloadProgress(int i) {
}
@Override
public final void onDownloadStart(Campaign campaign) {
}
@Override
public final void onFinishRedirection(Campaign campaign, String str2) {
try {
MBInterstitialActivity.this.hideLoading();
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public final boolean onInterceptDefaultLoadingDialog() {
return false;
}
@Override
public final void onRedirectionFailed(Campaign campaign, String str2) {
MBInterstitialActivity.this.hideLoading();
}
@Override
public final void onShowLoading(Campaign campaign) {
}
@Override
public final void onStartRedirection(Campaign campaign, String str2) {
try {
af.b("MBInterstitialActivity", "=====showloading");
MBInterstitialActivity.this.showLoading();
} catch (Exception e) {
e.printStackTrace();
}
}
});
this.o.a(this.e);
if (!z || TextUtils.isEmpty(str)) {
return;
}
a(str);
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void a(String str) {
CampaignEx mraidCampaign = getMraidCampaign();
if (mraidCampaign != null) {
new com.mbridge.msdk.foundation.same.report.i(getApplicationContext()).a(mraidCampaign.getRequestId(), mraidCampaign.getRequestIdNotice(), mraidCampaign.getId(), this.mUnitid, str, mraidCampaign.isBidCampaign());
}
}
public static void a(MBInterstitialActivity mBInterstitialActivity, int i, String str) {
CampaignEx campaignEx = mBInterstitialActivity.e;
if (campaignEx == null || !campaignEx.isMraid()) {
return;
}
q qVar = new q();
qVar.f(mBInterstitialActivity.e.getRequestId());
qVar.g(mBInterstitialActivity.e.getRequestIdNotice());
qVar.e(mBInterstitialActivity.e.getId());
qVar.b(i);
qVar.l(String.valueOf(System.currentTimeMillis() - mBInterstitialActivity.k));
qVar.n("");
qVar.h(str);
qVar.d("5");
qVar.d(mBInterstitialActivity.e.isMraid() ? q.a : q.b);
h.b(qVar, mBInterstitialActivity.mUnitid, mBInterstitialActivity.e);
}
}