Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 InnerBannerMgr.java 源代码,内容仅作参考
package com.tp.adx.sdk;
import android.content.Context;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.webkit.ValueCallback;
import android.widget.FrameLayout;
import android.widget.ImageView;
import com.adjust.sdk.Constants;
import com.google.android.exoplayer2.text.ttml.TtmlNode;
import com.iab.omid.library.tradplus.adsession.AdEvents;
import com.iab.omid.library.tradplus.adsession.AdSession;
import com.iab.omid.library.tradplus.adsession.CreativeType;
import com.tp.adx.R$drawable;
import com.tp.adx.open.AdError;
import com.tp.adx.open.TPAdOptions;
import com.tp.adx.open.TPInnerAdListener;
import com.tp.adx.open.TPInnerMediaView;
import com.tp.adx.open.TPInnerNativeAd;
import com.tp.adx.sdk.bean.TPPayloadInfo;
import com.tp.adx.sdk.event.InnerSendEventMessage;
import com.tp.adx.sdk.tracking.InnerTrackNotification;
import com.tp.adx.sdk.tracking.InnerVastNotificationUtils;
import com.tp.adx.sdk.ui.BaseWebView;
import com.tp.adx.sdk.ui.InnerHtmlWebView;
import com.tp.adx.sdk.ui.InnerMraidWebView;
import com.tp.adx.sdk.ui.MraidJavascript;
import com.tp.adx.sdk.ui.TPInnerNativeBannerFactory;
import com.tp.adx.sdk.util.InnerLog;
import com.tp.adx.sdk.util.JumpUtils;
import com.tp.adx.sdk.util.ViewUtils;
import com.tp.common.InnerImpressionUtils;
import com.tp.vast.VastManager;
import com.tradplus.ads.base.GlobalTradPlus;
import com.tradplus.ads.base.common.TPTaskManager;
import com.tradplus.ads.common.FSConstants;
import com.tradplus.ads.common.util.LogUtil;
import defpackage.T6;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
public class InnerBannerMgr extends InnerParseManager {
private BaseWebView EAU;
private AdEvents IP9Be6yl;
private boolean MN0;
private FrameLayout O2WW392N;
View.OnClickListener Ogh;
private boolean Ozp48;
private AdSession Z5AQ7;
private boolean eY;
private int g7L28;
private int gqs2;
private boolean h7uEG5;
private boolean l7i;
private boolean pcM9xx3f;
private int z29n97;
public class AhRu0ksV implements View.OnClickListener {
AhRu0ksV() {
}
@Override
public void onClick(View view) {
InnerBannerMgr.this.onJumpAction(view.getContext(), JumpUtils.getJumpPrivacyUrl(view.getContext()), "", InnerBannerMgr.this.gt65QHUX);
}
}
public class Bcny5qC1 implements View.OnClickListener {
Bcny5qC1() {
}
@Override
public void onClick(View view) {
InnerBannerMgr.this.onJumpAction(view.getContext(), JumpUtils.getJumpPrivacyUrl(view.getContext()), "", InnerBannerMgr.this.gt65QHUX);
}
}
public class EAU implements T6.jB {
final boolean gt65QHUX;
class gt65QHUX implements Runnable {
final String VJ;
class C0425gt65QHUX implements ValueCallback<String> {
C0425gt65QHUX() {
}
@Override
public void onReceiveValue(String str) {
}
}
gt65QHUX(String str) {
this.VJ = str;
}
@Override
public void run() {
try {
Context context = GlobalTradPlus.getInstance().getContext();
InnerBannerMgr.this.EAU.evaluateJavascript(l5U5X.gt65QHUX(context), null);
InnerBannerMgr.this.EAU.evaluateJavascript(this.VJ, new C0425gt65QHUX());
InnerBannerMgr innerBannerMgr = InnerBannerMgr.this;
innerBannerMgr.Z5AQ7 = nY08.jB(context, innerBannerMgr.EAU, "", CreativeType.HTML_DISPLAY, EAU.this.gt65QHUX);
if (InnerBannerMgr.this.Z5AQ7 != null) {
InnerBannerMgr.this.Z5AQ7.registerAdView(InnerBannerMgr.this.EAU);
InnerBannerMgr.this.Z5AQ7.start();
InnerBannerMgr innerBannerMgr2 = InnerBannerMgr.this;
innerBannerMgr2.IP9Be6yl = AdEvents.createAdEvents(innerBannerMgr2.Z5AQ7);
if (InnerBannerMgr.this.IP9Be6yl != null) {
InnerBannerMgr.this.IP9Be6yl.loaded();
if (InnerBannerMgr.this.eY) {
return;
}
InnerBannerMgr.this.eY = true;
InnerBannerMgr.this.IP9Be6yl.impressionOccurred();
}
}
} catch (Throwable unused) {
}
}
}
EAU(boolean z) {
this.gt65QHUX = z;
}
@Override
public void onFailed() {
}
@Override
public void onSuccess(String str) {
TPTaskManager.getInstance().runOnMainThread(new gt65QHUX(str));
}
}
public class O2WW392N implements ViewTreeObserver.OnGlobalLayoutListener {
final ViewTreeObserver VJ;
O2WW392N(ViewTreeObserver viewTreeObserver) {
this.VJ = viewTreeObserver;
}
@Override
public void onGlobalLayout() {
if (this.VJ.isAlive()) {
this.VJ.removeOnGlobalLayoutListener(this);
}
InnerBannerMgr innerBannerMgr = InnerBannerMgr.this;
if (innerBannerMgr.gt65QHUX(innerBannerMgr.bidInfo)) {
Log.v("InnerSDK", "adx banner time out");
InnerBannerMgr.this.innerSendEventMessage.sendShowEndAd(14);
return;
}
LogUtil.ownShow("adx banner " + InnerBannerMgr.this.O2WW392N.getWidth() + " height = " + InnerBannerMgr.this.O2WW392N.getHeight());
if (InnerBannerMgr.this.h7uEG5) {
return;
}
InnerBannerMgr.this.h7uEG5 = true;
if (InnerImpressionUtils.isDefaultImpressionSetting(InnerBannerMgr.this.payloadInfo)) {
InnerBannerMgr.this.onImpression();
return;
}
InnerBannerMgr innerBannerMgr2 = InnerBannerMgr.this;
innerBannerMgr2.checkVisible(innerBannerMgr2.O2WW392N);
}
}
class VJ implements View.OnClickListener {
VJ() {
}
@Override
public void onClick(View view) {
if (InnerBannerMgr.this.O2WW392N != null) {
InnerBannerMgr innerBannerMgr = InnerBannerMgr.this;
if (innerBannerMgr.XbP574xI(innerBannerMgr.O2WW392N, InnerBannerMgr.this.bidInfo)) {
try {
Object tag = view.getTag();
if ((tag instanceof String) && "tp_inner_privacy_tag".equals(String.valueOf(tag))) {
InnerBannerMgr.this.onJumpAction(view.getContext(), JumpUtils.getJumpPrivacyUrl(view.getContext()), "", InnerBannerMgr.this.gt65QHUX);
return;
}
InnerSendEventMessage innerSendEventMessage = InnerBannerMgr.this.innerSendEventMessage;
if (innerSendEventMessage != null) {
innerSendEventMessage.sendClickAdStart();
}
ArrayList<String> arrayList = new ArrayList<>();
InnerBannerMgr innerBannerMgr2 = InnerBannerMgr.this;
innerBannerMgr2.getClickUrlByNativeInfo(innerBannerMgr2.mNativeInfo, arrayList);
if (arrayList.size() == 0) {
return;
}
Log.v("InnerSDK", "onClick");
InnerLog.v("InnerSDK", "onClick :" + arrayList.get(0));
boolean onJumpAction = InnerBannerMgr.this.onJumpAction(view.getContext(), arrayList.get(0), InnerBannerMgr.this.innerSendEventMessage.getRequestId(), InnerBannerMgr.this.gt65QHUX);
TPInnerAdListener tPInnerAdListener = InnerBannerMgr.this.Bcny5qC1;
if (tPInnerAdListener != null) {
tPInnerAdListener.onAdClicked();
}
InnerVastNotificationUtils.getInstance().sendCompanionClickNotification(InnerBannerMgr.this.innerNativeAd.getVastVideoConfig());
InnerBannerMgr innerBannerMgr3 = InnerBannerMgr.this;
InnerTrackNotification.sendClickNotification(innerBannerMgr3.bidInfo, innerBannerMgr3.innerSendEventMessage, VastManager.getVastNetworkMediaUrl(innerBannerMgr3.innerNativeAd.getVastVideoConfig()));
InnerSendEventMessage innerSendEventMessage2 = InnerBannerMgr.this.innerSendEventMessage;
if (innerSendEventMessage2 == null) {
return;
}
innerSendEventMessage2.sendClickAdEnd(onJumpAction ? 1 : 32);
} catch (Exception unused) {
}
}
}
}
}
public class g8 implements View.OnClickListener {
g8() {
}
@Override
public void onClick(View view) {
TPInnerAdListener tPInnerAdListener = InnerBannerMgr.this.Bcny5qC1;
if (tPInnerAdListener != null) {
tPInnerAdListener.onAdClosed();
}
InnerBannerMgr.this.O2WW392N.removeAllViews();
}
}
public class gt65QHUX implements Runnable {
gt65QHUX() {
}
@Override
public void run() {
if (InnerBannerMgr.this.EAU instanceof InnerMraidWebView) {
InnerMraidWebView.MraidScreenMetrics mraidScreenMetrics = new InnerMraidWebView.MraidScreenMetrics();
DisplayMetrics displayMetrics = InnerBannerMgr.this.O2WW392N.getResources().getDisplayMetrics();
mraidScreenMetrics.screenRectDips = displayMetrics.widthPixels + "," + displayMetrics.heightPixels;
int[] iArr = new int[2];
View rootView = InnerBannerMgr.this.O2WW392N.getRootView();
rootView.getLocationOnScreen(iArr);
mraidScreenMetrics.rootViewRectDips = iArr[0] + "," + iArr[1] + "," + rootView.getWidth() + "," + rootView.getHeight();
InnerBannerMgr.this.O2WW392N.getLocationOnScreen(iArr);
mraidScreenMetrics.defaultAdRectDips = iArr[0] + "," + iArr[1] + "," + InnerBannerMgr.this.O2WW392N.getWidth() + "," + InnerBannerMgr.this.O2WW392N.getHeight();
InnerBannerMgr.this.EAU.getLocationOnScreen(iArr);
mraidScreenMetrics.currentAdRectDips = iArr[0] + "," + iArr[1] + "," + InnerBannerMgr.this.EAU.getWidth() + "," + InnerBannerMgr.this.EAU.getHeight();
((InnerMraidWebView) InnerBannerMgr.this.EAU).handlePageLoad(mraidScreenMetrics);
}
}
}
public class h7uEG5 implements BaseWebView.InnerHtmlLoadListener {
h7uEG5() {
}
@Override
public void onClicked() {
Log.v("InnerSDK", "onClicked");
InnerBannerMgr.this.pcM9xx3f = true;
TPInnerAdListener tPInnerAdListener = InnerBannerMgr.this.Bcny5qC1;
if (tPInnerAdListener != null) {
tPInnerAdListener.onAdClicked();
}
InnerSendEventMessage innerSendEventMessage = InnerBannerMgr.this.innerSendEventMessage;
if (innerSendEventMessage != null) {
innerSendEventMessage.sendClickAdStart();
}
InnerBannerMgr innerBannerMgr = InnerBannerMgr.this;
InnerTrackNotification.sendClickNotification(innerBannerMgr.bidInfo, innerBannerMgr.innerSendEventMessage, "");
}
@Override
public void onDestory() {
if (InnerBannerMgr.this.Z5AQ7 != null) {
InnerBannerMgr.this.Z5AQ7.finish();
InnerBannerMgr.this.Z5AQ7 = null;
}
}
@Override
public void onJump(String str) {
InnerLog.v("InnerSDK", "onJump :" + str);
if (str.startsWith(":data:text")) {
return;
}
InnerBannerMgr innerBannerMgr = InnerBannerMgr.this;
int gZ7P5LP = innerBannerMgr.gZ7P5LP(innerBannerMgr.payloadInfo);
if (InnerBannerMgr.this.pcM9xx3f) {
InnerBannerMgr.this.KTR10l3(str);
return;
}
if (gZ7P5LP == 0) {
InnerBannerMgr.this.KTR10l3(str);
}
InnerSendEventMessage innerSendEventMessage = InnerBannerMgr.this.innerSendEventMessage;
innerSendEventMessage.sendAutoJumpAction(InnerBannerMgr.this.bidInfo.getPrice() + "", gZ7P5LP);
}
@Override
public void onLoaded() {
Log.v("InnerSDK", "onLoaded");
InnerBannerMgr innerBannerMgr = InnerBannerMgr.this;
innerBannerMgr.jB(innerBannerMgr.innerSendEventMessage.getRequestId());
TPInnerAdListener tPInnerAdListener = InnerBannerMgr.this.Bcny5qC1;
if (tPInnerAdListener != null) {
tPInnerAdListener.onAdLoaded();
}
InnerSendEventMessage innerSendEventMessage = InnerBannerMgr.this.innerSendEventMessage;
if (innerSendEventMessage != null) {
innerSendEventMessage.sendLoadAdNetworkEnd(1);
}
}
@Override
public void onVisibilityChanged(boolean z) {
}
}
public class jB implements Runnable {
jB() {
}
@Override
public void run() {
try {
if (InnerBannerMgr.this.getAdmType() == 1) {
InnerBannerMgr.this.wM2uNs();
} else {
if (!InnerBannerMgr.this.bidInfo.getAdm().contains("mraid.js")) {
InnerBannerMgr.this.R4409pz();
} else {
TPPayloadInfo.SeatBid.Bid bid = InnerBannerMgr.this.bidInfo;
String adm = bid.getAdm();
bid.setAdm(adm.replace("src=\"mraid.js\">", ">" + MraidJavascript.JAVASCRIPT_SOURCE));
InnerLog.v("InnerSDK", "adm:" + InnerBannerMgr.this.bidInfo.getAdm());
InnerBannerMgr.this.d90L3h();
}
InnerBannerMgr.this.h7uEG5 = false;
InnerBannerMgr.this.EAU.loadHtmlResponse(InnerBannerMgr.this.bidInfo.getAdm());
InnerBannerMgr innerBannerMgr = InnerBannerMgr.this;
innerBannerMgr.iryc4rfz(innerBannerMgr.bidInfo.isOpenOMSdk());
}
InnerBannerMgr.this.Z3GEx621();
} catch (Throwable unused) {
TPInnerAdListener tPInnerAdListener = InnerBannerMgr.this.Bcny5qC1;
if (tPInnerAdListener != null) {
tPInnerAdListener.onAdLoadFailed(new AdError(1007, "webview package not found"));
}
}
}
}
public class z29n97 implements Runnable {
final ViewGroup VJ;
z29n97(ViewGroup viewGroup) {
this.VJ = viewGroup;
}
@Override
public void run() {
if (InnerImpressionUtils.needViewVisible(InnerBannerMgr.this.payloadInfo)) {
InnerBannerMgr innerBannerMgr = InnerBannerMgr.this;
}
FrameLayout frameLayout = InnerBannerMgr.this.O2WW392N;
InnerBannerMgr innerBannerMgr2 = InnerBannerMgr.this;
if (!InnerImpressionUtils.isCover(frameLayout, innerBannerMgr2.payloadInfo, innerBannerMgr2.bidInfo.getW(), InnerBannerMgr.this.bidInfo.getH())) {
InnerBannerMgr.eY(InnerBannerMgr.this);
if (InnerBannerMgr.this.gqs2 >= InnerImpressionUtils.getValidCount(InnerBannerMgr.this.payloadInfo)) {
InnerBannerMgr.this.onImpression();
return;
} else {
InnerBannerMgr.this.checkVisible(this.VJ);
return;
}
}
InnerBannerMgr.this.checkVisible(this.VJ);
}
}
public InnerBannerMgr(String str, FrameLayout frameLayout, String str2) {
super(str, str2);
this.h7uEG5 = false;
this.MN0 = false;
this.Ogh = new VJ();
this.O2WW392N = frameLayout;
}
private void K1EX0a(ViewGroup viewGroup) {
FrameLayout.LayoutParams layoutParams;
if (this.z29n97 > 0 && this.g7L28 > 0) {
layoutParams = new FrameLayout.LayoutParams(ViewUtils.dp2px(this.O2WW392N.getContext(), this.z29n97), ViewUtils.dp2px(this.O2WW392N.getContext(), this.g7L28));
} else {
layoutParams = new FrameLayout.LayoutParams(-1, -2);
}
layoutParams.gravity = 17;
if (this.MN0) {
layoutParams.rightMargin = ViewUtils.dp2px(this.O2WW392N.getContext(), 15);
}
this.O2WW392N.addView(viewGroup, layoutParams);
if (this.MN0) {
ImageView imageView = new ImageView(this.O2WW392N.getContext());
imageView.setOnClickListener(new g8());
imageView.setBackgroundResource(R$drawable.tp_adx_close_bg);
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(ViewUtils.dp2px(this.O2WW392N.getContext(), 15), ViewUtils.dp2px(this.O2WW392N.getContext(), 15));
layoutParams2.gravity = 53;
this.O2WW392N.addView(imageView, layoutParams2);
}
if (this.Ozp48) {
ImageView imageView2 = new ImageView(viewGroup.getContext());
imageView2.setTag("tp_inner_privacy_tag");
imageView2.setImageResource(R$drawable.tp_inner_ad_privacy);
imageView2.setOnClickListener(new Bcny5qC1());
this.O2WW392N.addView(imageView2, ViewUtils.generateLayoutParamsByViewGroup(viewGroup, ViewUtils.dp2px(viewGroup.getContext(), 15), ViewUtils.dp2px(viewGroup.getContext(), 15), 2));
}
}
public void KTR10l3(String str) {
boolean onJumpAction = str != null ? onJumpAction(this.O2WW392N.getContext(), str, this.innerSendEventMessage.getRequestId(), this.innerSendEventMessage.getPid()) : false;
InnerSendEventMessage innerSendEventMessage = this.innerSendEventMessage;
if (innerSendEventMessage != null) {
innerSendEventMessage.sendClickAdEnd(onJumpAction ? 1 : 32);
}
}
public void R4409pz() {
this.EAU = new InnerHtmlWebView(this.O2WW392N.getContext(), true, this.bidInfo.isOpenOMSdk());
prepareView();
}
private void V85() {
TPTaskManager.getInstance().runOnMainThread(new gt65QHUX());
}
public boolean XbP574xI(View view, TPPayloadInfo.SeatBid.Bid bid) {
if (view.getVisibility() == 0 && view.isShown()) {
if (view.getWidth() > bid.getW() && view.getHeight() > bid.getH()) {
Rect rect = new Rect();
if (view.getGlobalVisibleRect(rect) && rect.width() > bid.getW() && rect.height() > bid.getH()) {
return true;
}
}
return false;
}
InnerLog.v("InnerSDK", "view is not visible");
return false;
}
public void Z3GEx621() {
ViewTreeObserver viewTreeObserver = this.O2WW392N.getViewTreeObserver();
if (viewTreeObserver.isAlive()) {
viewTreeObserver.addOnGlobalLayoutListener(new O2WW392N(viewTreeObserver));
}
}
public void d90L3h() {
this.EAU = new InnerMraidWebView(this.O2WW392N.getContext(), this.bidInfo.isOpenOMSdk());
prepareView();
}
static int eY(InnerBannerMgr innerBannerMgr) {
int i = innerBannerMgr.gqs2;
innerBannerMgr.gqs2 = i + 1;
return i;
}
public int gZ7P5LP(TPPayloadInfo tPPayloadInfo) {
TPPayloadInfo.Ext.AutoRedirect auto_redirect;
int filter_ratio = (tPPayloadInfo == null || tPPayloadInfo.getExt() == null || (auto_redirect = tPPayloadInfo.getExt().getAuto_redirect()) == null) ? 0 : auto_redirect.getFilter_ratio();
return (filter_ratio < 100 && new Random().nextInt(100) >= filter_ratio) ? 0 : 1;
}
public void iryc4rfz(boolean z) {
if (z && this.Z5AQ7 == null && Build.VERSION.SDK_INT >= 19) {
new T6().jB(new EAU(z));
}
}
private void s1480a(String str, String str2, String str3) {
Uri parse = Uri.parse(str);
HashMap hashMap = new HashMap();
for (String str4 : parse.getQueryParameterNames()) {
hashMap.put(str4, TextUtils.join(",", parse.getQueryParameters(str4)));
}
String str5 = (String) hashMap.get("url");
if (str5.contains(Constants.DEEPLINK)) {
openDeepLink(this.O2WW392N.getContext(), str5);
} else {
startHtmlActivity(this.O2WW392N.getContext(), str5, str2, str3);
}
((InnerMraidWebView) this.EAU).commandCompleteEvent(TtmlNode.TEXT_EMPHASIS_MARK_OPEN);
}
public void wM2uNs() {
TPInnerNativeBannerFactory tPInnerNativeBannerFactory = new TPInnerNativeBannerFactory();
ViewGroup createNativeBanner = tPInnerNativeBannerFactory.createNativeBanner(this.O2WW392N.getContext(), this.innerNativeAd, this.z29n97, this.g7L28);
K1EX0a(createNativeBanner);
registerView(createNativeBanner, tPInnerNativeBannerFactory.getClickViews(), this.innerNativeAd, true);
}
@Override
protected void checkVisible(ViewGroup viewGroup) {
if (this.EAU instanceof InnerHtmlWebView) {
if (this.l7i) {
return;
}
TPTaskManager.getInstance().getThreadHandler().postDelayed(new z29n97(viewGroup), 1000L);
} else if (!XbP574xI(this.O2WW392N, this.bidInfo) || ViewUtils.isCover(this.O2WW392N)) {
} else {
onImpression();
}
}
@Override
protected void loadDataEnd() {
TPTaskManager.getInstance().runOnMainThread(new jB());
}
@Override
protected void loadVastDataEnd() {
if (getAdmType() == 1) {
wM2uNs();
}
}
public void needPrivacyIcon(boolean z) {
this.Ozp48 = z;
}
public void onDestroy() {
BaseWebView baseWebView = this.EAU;
if (baseWebView != null) {
baseWebView.destroy();
}
this.l7i = true;
}
@Override
protected void onImpression() {
AdEvents adEvents;
try {
if (this.Z5AQ7 != null && !this.eY && (adEvents = this.IP9Be6yl) != null) {
this.eY = true;
adEvents.impressionOccurred();
}
} catch (Throwable unused) {
}
V85();
Log.v("InnerSDK", "onShown");
TPInnerAdListener tPInnerAdListener = this.Bcny5qC1;
if (tPInnerAdListener != null) {
tPInnerAdListener.onAdImpression();
}
if (this.innerSendEventMessage != null && getAdmType() != 1) {
this.innerSendEventMessage.sendShowAdStart();
}
InnerTrackNotification.sendImpressionNotification(this.bidInfo, this.innerSendEventMessage, "");
}
@Override
protected boolean onJumpAction(Context context, String str, String str2, String str3) {
try {
if (str.startsWith("market:")) {
openMarket(context, str);
} else if (str.contains("mraid://open") && getAdmType() != 1) {
s1480a(str, str2, str3);
} else if (str.startsWith(FSConstants.HTTP)) {
startHtmlActivity(context, str, str2, str3);
} else {
openDeepLink(context, str);
}
return true;
} catch (Throwable th) {
InnerLog.v("InnerSDK", "onJumpAction:" + th.getMessage());
return false;
}
}
@Override
public boolean parseAdm() {
if (getAdmType() == 1) {
if (!parseNativeInfo()) {
return false;
}
} else {
g8(this.innerSendEventMessage);
sendWinNotification();
loadDataEnd();
}
return true;
}
public void prepareView(ViewGroup viewGroup, List<View> list) {
try {
if (this.Ozp48) {
ImageView imageView = new ImageView(viewGroup.getContext());
imageView.setTag("tp_inner_privacy_tag");
imageView.setOnClickListener(new AhRu0ksV());
imageView.setImageResource(R$drawable.tp_inner_ad_privacy);
viewGroup.addView(imageView, ViewUtils.generateLayoutParamsByViewGroup(viewGroup, ViewUtils.dp2px(viewGroup.getContext(), 15), ViewUtils.dp2px(viewGroup.getContext(), 15), 2));
}
ArrayList<View> arrayList = new ArrayList<>();
getAllChildByViewGroup(viewGroup, arrayList);
if (this.z29n97 == 300 && this.g7L28 == 250) {
Iterator<View> it = arrayList.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
View next = it.next();
if (next instanceof TPInnerMediaView) {
this.tpInnerMediaView = (TPInnerMediaView) next;
((TPInnerMediaView) next).setIsMute(this.isMute);
((TPInnerMediaView) next).setVastVideoConfig(this.innerNativeAd, this.bidInfo.isOpenOMSdk());
((TPInnerMediaView) next).setOnPlayerListener(this.onPlayerListener);
break;
}
}
}
registerViewClick(arrayList, list, this.Ogh);
} catch (Exception e) {
Log.v("InnerSDK", "register view click exception:" + e);
}
}
@Override
public void registerView(ViewGroup viewGroup, List<View> list, TPInnerNativeAd tPInnerNativeAd, boolean z) {
if (this.innerSendEventMessage == null) {
this.innerSendEventMessage = new InnerSendEventMessage(GlobalTradPlus.getInstance().getContext(), this.gt65QHUX, "", this.payloadInfo);
}
this.innerSendEventMessage.sendShowAdStart();
if (gt65QHUX(this.bidInfo)) {
Log.v("InnerSDK", "adx native time out");
this.innerSendEventMessage.sendShowEndAd(14);
} else if (viewGroup == null) {
Log.v("InnerSDK", "registerView adLayout is null");
this.innerSendEventMessage.sendShowEndAd(14);
} else if (checkNativeAdValid(tPInnerNativeAd) && tPInnerNativeAd == this.innerNativeAd) {
if (this.mNativeInfo == null) {
Log.v("InnerSDK", "native info has destroyed");
this.innerSendEventMessage.sendShowEndAd(14);
return;
}
prepareView(viewGroup, list);
} else {
Log.v("InnerSDK", "nativeAd is not valid");
this.innerSendEventMessage.sendShowEndAd(14);
}
}
@Override
public void setAdOption(TPAdOptions tPAdOptions) {
super.setAdOption(tPAdOptions);
this.z29n97 = tPAdOptions.getWidth();
this.g7L28 = tPAdOptions.getHeight();
this.isMute = tPAdOptions.isMute();
this.MN0 = tPAdOptions.isShowCloseBtn();
}
public void prepareView() {
K1EX0a(this.EAU);
this.EAU.setLoadListener(new h7uEG5());
}
}