我要上王者 v1.1版本的 MD5 值为:b7d3566522def961cabeb92cb17f5db9
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.anythink.expressad.mbbanner.a.d;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.text.TextUtils;
import android.util.Base64;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import com.anythink.core.common.b.n;
import com.anythink.expressad.atsignalcommon.bridge.CommonJSBridgeImpUtils;
import com.anythink.expressad.atsignalcommon.mraid.CallMraidJS;
import com.anythink.expressad.atsignalcommon.windvane.AbsFeedBackForH5;
import com.anythink.expressad.foundation.d.d;
import com.anythink.expressad.foundation.g.a.f;
import com.anythink.expressad.foundation.h.m;
import com.anythink.expressad.foundation.h.t;
import com.anythink.expressad.foundation.h.y;
import com.anythink.expressad.mbbanner.a.c.e;
import com.anythink.expressad.mbbanner.view.ATBannerWebView;
import com.anythink.expressad.out.TemplateBannerView;
import com.anythink.expressad.out.i;
import com.anythink.expressad.out.p;
import com.anythink.expressad.videocommon.b.j;
import com.anythink.expressad.widget.FeedBackButton;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONObject;
public final class c {
private static String c = "BannerShowManager";
private float A;
com.anythink.expressad.a.a f3988a;
i f3989b;
private com.anythink.expressad.mbbanner.a.c.c d;
private boolean e;
private com.anythink.expressad.foundation.d.c f;
private TemplateBannerView g;
private ImageView h;
private ATBannerWebView i;
private ImageView j;
private boolean k;
private boolean l;
private boolean m;
private boolean n;
private boolean o;
private boolean p;
private boolean q;
private String r;
private String s;
private List<com.anythink.expressad.foundation.d.c> t;
private int u;
private com.anythink.expressad.mbbanner.a.a.c w;
private float z;
private long v = 15000;
private Handler x = new Handler(Looper.getMainLooper()) {
@Override
public final void handleMessage(Message message) {
super.handleMessage(message);
int i = message.what;
}
};
private com.anythink.expressad.foundation.g.g.a y = new com.anythink.expressad.foundation.g.g.a() {
@Override
public final void b() {
}
@Override
public final void c() {
}
@Override
public final void a() {
c.this.a(com.anythink.expressad.mbbanner.a.a.n);
}
};
private View.OnClickListener B = new View.OnClickListener() {
@Override
public final void onClick(View view) {
if (c.this.q) {
c.b(c.this);
}
}
};
private com.anythink.expressad.mbbanner.a.c.a C = new com.anythink.expressad.mbbanner.a.c.a() {
@Override
public final void a(int i) {
if (i != 2) {
c.this.l();
} else {
c.c(c.this);
}
}
@Override
public final void a() {
c.b(c.this);
}
@Override
public final void b() {
c.b(c.this);
}
@Override
public final void b(int i) {
if (i == 1) {
c.this.h();
c.b();
return;
}
c.this.e();
}
@Override
public final void a(com.anythink.expressad.foundation.d.c cVar) {
c.this.a(cVar, false, "");
}
@Override
public final void a(boolean z) {
if (c.this.d != null) {
c.this.p = z;
if (z) {
c.this.d.b();
} else {
c.this.d.c();
}
}
}
@Override
public final void a(boolean z, String str) {
try {
if (c.this.d != null) {
if (TextUtils.isEmpty(str)) {
c.this.d.a(c.this.f);
c.this.d.a();
return;
}
com.anythink.expressad.foundation.d.c b2 = com.anythink.expressad.foundation.d.c.b(com.anythink.expressad.foundation.d.c.a(c.this.f));
b2.p(str);
c.this.a(b2, z, str);
}
} catch (Exception e) {
String unused = c.c;
e.getMessage();
}
}
};
private com.anythink.expressad.atsignalcommon.a.b D = new com.anythink.expressad.atsignalcommon.a.b() {
@Override
public final void onPageFinished(WebView webView, String str) {
c.l(c.this);
com.anythink.expressad.mbbanner.a.a.a.a(webView);
c.n(c.this);
if (c.this.f == null || c.this.f.s()) {
return;
}
c.this.h();
c.b();
}
@Override
public final void onReceivedError(WebView webView, int i, String str, String str2) {
c.this.a(str);
c.b();
}
};
static void b() {
}
private static void n() {
}
static boolean l(c cVar) {
cVar.m = true;
return true;
}
static boolean n(c cVar) {
cVar.o = true;
return true;
}
public c(TemplateBannerView templateBannerView, com.anythink.expressad.mbbanner.a.c.c cVar, String str, String str2, boolean z, com.anythink.expressad.d.c cVar2) {
this.e = z;
this.g = templateBannerView;
this.r = str2;
this.s = str;
this.d = new e(cVar, cVar2);
}
public final void a(i iVar) {
this.f3989b = iVar;
}
public final void a(boolean z, int i) {
this.u = i;
if (i == 0) {
com.anythink.expressad.d.b.a();
com.anythink.expressad.d.c c2 = com.anythink.expressad.d.b.c(com.anythink.expressad.foundation.b.a.c().f(), this.r);
if (c2 == null) {
return;
}
z = c2.d() == 1;
}
this.e = z;
}
public final void a(boolean z) {
this.e = z;
}
private boolean d() {
String a2 = a(this.f);
if (TextUtils.isEmpty(a2)) {
return false;
}
if (this.g != null) {
if (this.i == null) {
ATBannerWebView aTBannerWebView = new ATBannerWebView(n.a().f());
this.i = aTBannerWebView;
aTBannerWebView.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
this.i.setWebViewClient(new com.anythink.expressad.mbbanner.view.a(this.r, this.t, this.C));
}
ImageView imageView = this.h;
if (imageView != null) {
imageView.setVisibility(8);
}
if (this.i.getVisibility() != 0) {
this.i.setVisibility(0);
}
if (this.i.getParent() == null) {
this.g.addView(this.i);
d(this.f.H());
}
l();
com.anythink.expressad.mbbanner.a.a.c cVar = new com.anythink.expressad.mbbanner.a.a.c(this.g.getContext(), this.s, this.r);
this.w = cVar;
cVar.a(this.t);
this.w.a(this.C);
this.w.a(this.u);
this.i.setWebViewListener(this.D);
this.i.setObject(this.w);
if (!a2.startsWith("file")) {
this.i.loadDataWithBaseURL(this.f.p(), a2, "text/html", com.anythink.expressad.foundation.g.a.bN, null);
return true;
}
this.i.loadUrl(a2);
return true;
}
a(com.anythink.expressad.mbbanner.a.a.i);
return true;
}
public void e() {
if (this.g != null) {
ATBannerWebView aTBannerWebView = this.i;
if (aTBannerWebView != null && aTBannerWebView.getParent() != null) {
this.g.removeView(this.i);
}
if (this.h == null) {
ImageView imageView = new ImageView(n.a().f());
this.h = imageView;
imageView.setOnTouchListener(new View.OnTouchListener() {
@Override
public final boolean onTouch(View view, MotionEvent motionEvent) {
c.this.z = motionEvent.getRawX();
c.this.A = motionEvent.getRawY();
String unused = c.c;
StringBuilder sb = new StringBuilder();
sb.append(c.this.z);
sb.append(" ");
sb.append(c.this.A);
return false;
}
});
this.h.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
c.this.a(com.anythink.expressad.mbbanner.a.e.b.a(CommonJSBridgeImpUtils.buildClickJsonObject(c.this.z, c.this.A), c.this.f), false, "");
}
});
}
String be = this.f.be();
if (!TextUtils.isEmpty(be)) {
com.anythink.expressad.foundation.g.d.b.a(n.a().f()).a(be, new com.anythink.expressad.foundation.g.d.c() {
@Override
public final void a(Bitmap bitmap, String str) {
if (c.this.h != null) {
c.this.h.setImageBitmap(bitmap);
}
c.l(c.this);
c.m(c.this);
c.this.l();
c.this.h();
}
@Override
public final void a(String str, String str2) {
c.this.a(com.anythink.expressad.mbbanner.a.a.j);
}
});
return;
} else {
a(com.anythink.expressad.mbbanner.a.a.h);
return;
}
}
a(com.anythink.expressad.mbbanner.a.a.i);
}
private void f() {
if (this.e && this.j == null) {
ImageView imageView = new ImageView(n.a().f());
this.j = imageView;
imageView.setBackgroundResource(com.anythink.expressad.foundation.h.i.a(n.a().f(), "anythink_banner_close", com.anythink.expressad.foundation.h.i.c));
this.j.setVisibility(8);
this.j.setContentDescription("closeButton");
}
}
private static String a(com.anythink.expressad.foundation.d.c cVar) {
String concat;
File file;
if (cVar != null) {
String b2 = j.a().b(cVar.p());
if (TextUtils.isEmpty(b2)) {
b2 = cVar.q();
if (cVar.ay()) {
try {
file = new File(b2);
} catch (Exception unused) {
File file2 = new File(b2);
if (file2.exists() && file2.isFile() && file2.canRead()) {
concat = "file:////".concat(String.valueOf(b2));
}
}
if (file.exists()) {
concat = m.a(file);
return concat;
}
return "";
}
File file3 = new File(b2);
if (file3.exists() && file3.isFile() && file3.canRead()) {
return "file:////".concat(String.valueOf(b2));
}
}
return b2;
}
return "";
}
public void a(String str) {
if (this.f == null || i()) {
return;
}
this.x.removeCallbacks(this.y);
com.anythink.expressad.mbbanner.a.c.c cVar = this.d;
if (cVar != null) {
cVar.a(str);
}
}
private boolean g() {
TemplateBannerView templateBannerView = this.g;
return (templateBannerView == null || y.a(templateBannerView) || this.p) ? false : true;
}
public void h() {
TemplateBannerView templateBannerView;
if (this.m && !this.n && this.d != null) {
this.n = true;
this.x.removeCallbacks(this.y);
com.anythink.expressad.foundation.d.c cVar = this.f;
if (cVar != null && !cVar.am()) {
this.f.an();
this.d.a(this.t);
}
}
if (this.m && this.k && this.l && this.n && this.f != null && !i()) {
TemplateBannerView templateBannerView2 = this.g;
boolean z = (templateBannerView2 == null || y.a(templateBannerView2) || this.p) ? false : true;
if (!z && (templateBannerView = this.g) != null) {
templateBannerView.postDelayed(new Runnable() {
@Override
public final void run() {
c.this.h();
}
}, 1000L);
}
if (this.o && z) {
int[] iArr = new int[2];
this.g.getLocationInWindow(iArr);
com.anythink.expressad.mbbanner.a.a.a.a(this.i, iArr[0], iArr[1]);
com.anythink.expressad.mbbanner.a.a.a.a(this.i, iArr[0], iArr[1], this.g.getWidth(), this.g.getHeight());
this.o = false;
if (!TextUtils.isEmpty(this.f.be())) {
com.anythink.expressad.foundation.g.d.b.a(n.a().f()).c(this.f.be());
}
}
new StringBuilder("showSuccessed:").append(this.f.aZ());
if (z) {
ImageView imageView = this.h;
if (imageView != null && imageView.getVisibility() == 0) {
com.anythink.expressad.foundation.d.c cVar2 = this.f;
if (cVar2 != null) {
if (cVar2 != null) {
c(cVar2, n.a().f(), this.r);
b(cVar2, n.a().f(), this.r);
a(cVar2, n.a().f(), this.r);
}
this.f.c(true);
f.a(this.r, this.f, "banner");
}
} else {
List<com.anythink.expressad.foundation.d.c> list = this.t;
if (list != null && list.size() > 0) {
boolean z2 = false;
int i = 0;
for (int i2 = 0; i2 < this.t.size(); i2++) {
if (!this.t.get(i2).s() && (i2 == 0 || !this.t.get(i2).V())) {
c(this.t.get(i2), n.a().f(), this.r);
this.t.get(i2).c(true);
f.a(this.r, this.t.get(i2), "banner");
i = i2;
z2 = true;
}
}
if (z2) {
b(this.t.get(i), n.a().f(), this.r);
a(this.t.get(i), n.a().f(), this.r);
}
}
}
this.q = true;
com.anythink.expressad.mbbanner.a.c.c cVar3 = this.d;
if (cVar3 != null) {
cVar3.a(this.f, false);
}
this.x.sendEmptyMessageDelayed(1, 1000L);
return;
}
this.f.c(false);
}
}
private synchronized boolean i() {
boolean V;
V = this.f.V();
if (!V) {
this.f.c(true);
}
return V;
}
private void j() {
com.anythink.expressad.mbbanner.a.c.c cVar = this.d;
if (cVar != null) {
cVar.d();
}
}
private void k() {
if (this.h != null) {
ATBannerWebView aTBannerWebView = this.i;
if (aTBannerWebView != null) {
aTBannerWebView.setVisibility(8);
}
if (this.h.getVisibility() != 0) {
this.h.setVisibility(0);
}
if (this.g != null) {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
layoutParams.addRule(10);
this.h.setScaleType(ImageView.ScaleType.FIT_XY);
if (this.h.getParent() == null) {
this.g.addView(this.h, layoutParams);
}
d(true);
}
}
}
public void l() {
ImageView imageView;
if (!this.e || (imageView = this.j) == null) {
return;
}
if (imageView.getVisibility() != 0) {
this.j.setVisibility(0);
this.j.setOnClickListener(this.B);
}
if (this.j.getParent() != null || this.g == null) {
return;
}
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(t.b(n.a().f(), 12.0f), t.b(n.a().f(), 12.0f));
layoutParams.addRule(11);
layoutParams.addRule(10);
this.g.addView(this.j, layoutParams);
}
private void m() {
ImageView imageView;
if (this.e && (imageView = this.j) != null && imageView.getVisibility() == 0) {
this.j.setVisibility(8);
this.j.setOnClickListener(null);
if (this.g == null || this.j.getParent() == null) {
return;
}
this.g.removeView(this.j);
}
}
public final void a() {
if (this.d != null) {
this.d = null;
}
ATBannerWebView aTBannerWebView = this.i;
if (aTBannerWebView != null) {
aTBannerWebView.setWebViewListener(null);
}
if (this.D != null) {
this.D = null;
}
ImageView imageView = this.j;
if (imageView != null) {
imageView.setOnClickListener(null);
}
ImageView imageView2 = this.h;
if (imageView2 != null) {
imageView2.setOnClickListener(null);
}
TemplateBannerView templateBannerView = this.g;
if (templateBannerView != null) {
templateBannerView.removeAllViews();
}
ATBannerWebView aTBannerWebView2 = this.i;
if (aTBannerWebView2 != null) {
aTBannerWebView2.release();
}
com.anythink.expressad.mbbanner.a.a.c cVar = this.w;
if (cVar != null) {
cVar.a();
}
if (this.C != null) {
this.C = null;
}
com.anythink.expressad.foundation.f.b.a().c(this.r);
}
public final void b(boolean z) {
this.k = z;
h();
}
public final void c(boolean z) {
this.l = z;
h();
}
private void b(com.anythink.expressad.foundation.d.c cVar) {
if (cVar != null) {
c(cVar, n.a().f(), this.r);
b(cVar, n.a().f(), this.r);
a(cVar, n.a().f(), this.r);
}
}
private static void a(com.anythink.expressad.foundation.d.c cVar, Context context, String str) {
if (cVar != null) {
try {
List<String> e = cVar.e();
if (e == null || e.size() <= 0) {
return;
}
for (String str2 : e) {
com.anythink.expressad.a.a.a(context, cVar, str, str2, true);
}
} catch (Throwable th) {
th.getMessage();
}
}
}
private static void b(com.anythink.expressad.foundation.d.c cVar, Context context, String str) {
if (cVar != null) {
try {
if (TextUtils.isEmpty(cVar.ai())) {
return;
}
com.anythink.expressad.a.a.a(context, cVar, str, cVar.ai(), false, true, com.anythink.expressad.a.a.a.j);
} catch (Throwable th) {
th.getMessage();
}
}
}
private static void c(com.anythink.expressad.foundation.d.c cVar, Context context, String str) {
if (!TextUtils.isEmpty(cVar.ag())) {
com.anythink.expressad.a.a.a(context, cVar, str, cVar.ag(), false, true, com.anythink.expressad.a.a.a.i);
}
if (TextUtils.isEmpty(str) || cVar.L() == null || cVar.L().o() == null) {
return;
}
com.anythink.expressad.a.a.a(context, cVar, str, cVar.L().o(), false);
}
public final void a(com.anythink.expressad.foundation.d.c cVar, boolean z, String str) {
if (this.q) {
if (this.f3988a == null) {
this.f3988a = new com.anythink.expressad.a.a(n.a().f(), this.r);
}
this.f3988a.a(new p.e() {
@Override
public final void a(com.anythink.expressad.foundation.d.c cVar2, String str2) {
}
@Override
public final void a(com.anythink.expressad.out.j jVar) {
}
@Override
public final void a(com.anythink.expressad.out.j jVar, String str2) {
}
@Override
public final boolean a() {
return false;
}
@Override
public final void b() {
}
@Override
public final void b(com.anythink.expressad.out.j jVar) {
}
@Override
public final void b(com.anythink.expressad.out.j jVar, String str2) {
}
@Override
public final void c(com.anythink.expressad.out.j jVar) {
}
@Override
public final void d(com.anythink.expressad.out.j jVar) {
}
@Override
public final void c() {
if (c.this.d != null) {
c.this.d.a();
}
}
});
cVar.l(this.r);
if (!this.f.W()) {
this.f.X();
}
com.anythink.expressad.mbbanner.a.c.c cVar2 = this.d;
if (cVar2 != null) {
cVar2.a(cVar);
}
if (z) {
TextUtils.isEmpty(str);
}
}
}
public final void a(int i, int i2, int i3, int i4) {
if (i == i3 && i2 == i4) {
return;
}
try {
CallMraidJS.getInstance().fireSizeChangeEvent(this.i, i, i2);
} catch (Throwable unused) {
}
}
private void d(boolean z) {
if (this.g != null) {
FeedBackButton b2 = com.anythink.expressad.foundation.f.b.a().b(this.r);
if (com.anythink.expressad.foundation.f.b.a().b() && z && b2 != null) {
ViewGroup viewGroup = (ViewGroup) b2.getParent();
if (viewGroup != null) {
viewGroup.removeView(b2);
}
b2.setVisibility(0);
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) b2.getLayoutParams();
if (layoutParams == null) {
layoutParams = new RelativeLayout.LayoutParams(com.anythink.expressad.foundation.f.b.f3759a, com.anythink.expressad.foundation.f.b.f3760b);
}
layoutParams.addRule(12);
b2.setLayoutParams(layoutParams);
this.g.addView(b2);
}
com.anythink.expressad.foundation.f.b.a().a(this.r, new com.anythink.expressad.foundation.f.a() {
@Override
public final void a() {
String str;
c.this.g.onPause();
try {
JSONObject jSONObject = new JSONObject();
if (n.a().f() != null) {
jSONObject.put("status", 1);
}
str = jSONObject.toString();
} catch (Throwable th) {
String unused = c.c;
th.getMessage();
str = "";
}
String encodeToString = Base64.encodeToString(str.getBytes(), 2);
com.anythink.expressad.atsignalcommon.windvane.j.a();
com.anythink.expressad.atsignalcommon.windvane.j.a((WebView) c.this.i, AbsFeedBackForH5.f2978a, encodeToString);
}
@Override
public final void b() {
String str;
c.this.g.onResume();
try {
JSONObject jSONObject = new JSONObject();
if (n.a().f() != null) {
jSONObject.put("status", 2);
}
str = jSONObject.toString();
} catch (Throwable th) {
String unused = c.c;
th.getMessage();
str = "";
}
String encodeToString = Base64.encodeToString(str.getBytes(), 2);
com.anythink.expressad.atsignalcommon.windvane.j.a();
com.anythink.expressad.atsignalcommon.windvane.j.a((WebView) c.this.i, AbsFeedBackForH5.f2978a, encodeToString);
}
@Override
public final void c() {
String str;
c.this.g.onResume();
try {
JSONObject jSONObject = new JSONObject();
if (n.a().f() != null) {
jSONObject.put("status", 2);
}
str = jSONObject.toString();
} catch (Throwable th) {
String unused = c.c;
th.getMessage();
str = "";
}
String encodeToString = Base64.encodeToString(str.getBytes(), 2);
com.anythink.expressad.atsignalcommon.windvane.j.a();
com.anythink.expressad.atsignalcommon.windvane.j.a((WebView) c.this.i, AbsFeedBackForH5.f2978a, encodeToString);
}
});
this.f.l(this.r);
com.anythink.expressad.foundation.f.b.a().a(this.r, this.f);
}
}
public final void a(d dVar) {
com.anythink.expressad.foundation.d.c cVar;
boolean z = false;
if (dVar != null) {
ArrayList<com.anythink.expressad.foundation.d.c> arrayList = dVar.J;
this.t = arrayList;
if (arrayList != null && arrayList.size() > 0) {
cVar = this.t.get(0);
this.f = cVar;
if (cVar != null) {
a(com.anythink.expressad.mbbanner.a.a.h);
return;
}
this.x.removeCallbacks(this.y);
if (this.e && this.j == null) {
ImageView imageView = new ImageView(n.a().f());
this.j = imageView;
imageView.setBackgroundResource(com.anythink.expressad.foundation.h.i.a(n.a().f(), "anythink_banner_close", com.anythink.expressad.foundation.h.i.c));
this.j.setVisibility(8);
this.j.setContentDescription("closeButton");
}
this.m = false;
this.n = false;
this.q = false;
if (TextUtils.isEmpty(this.f.q())) {
TextUtils.isEmpty(this.f.p());
}
this.x.postDelayed(this.y, this.v);
String a2 = a(this.f);
if (!TextUtils.isEmpty(a2)) {
if (this.g != null) {
if (this.i == null) {
ATBannerWebView aTBannerWebView = new ATBannerWebView(n.a().f());
this.i = aTBannerWebView;
aTBannerWebView.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
this.i.setWebViewClient(new com.anythink.expressad.mbbanner.view.a(this.r, this.t, this.C));
}
ImageView imageView2 = this.h;
if (imageView2 != null) {
imageView2.setVisibility(8);
}
if (this.i.getVisibility() != 0) {
this.i.setVisibility(0);
}
if (this.i.getParent() == null) {
this.g.addView(this.i);
d(this.f.H());
}
l();
com.anythink.expressad.mbbanner.a.a.c cVar2 = new com.anythink.expressad.mbbanner.a.a.c(this.g.getContext(), this.s, this.r);
this.w = cVar2;
cVar2.a(this.t);
this.w.a(this.C);
this.w.a(this.u);
this.i.setWebViewListener(this.D);
this.i.setObject(this.w);
if (!a2.startsWith("file")) {
this.i.loadDataWithBaseURL(this.f.p(), a2, "text/html", com.anythink.expressad.foundation.g.a.bN, null);
} else {
this.i.loadUrl(a2);
}
} else {
a(com.anythink.expressad.mbbanner.a.a.i);
}
z = true;
}
if (z) {
return;
}
if (TextUtils.isEmpty(this.f.q())) {
TextUtils.isEmpty(this.f.p());
}
e();
return;
}
}
cVar = null;
this.f = cVar;
if (cVar != null) {
}
}
private com.anythink.expressad.foundation.d.c b(d dVar) {
if (dVar != null) {
ArrayList<com.anythink.expressad.foundation.d.c> arrayList = dVar.J;
this.t = arrayList;
if (arrayList != null && arrayList.size() > 0) {
return this.t.get(0);
}
}
return null;
}
static void b(c cVar) {
com.anythink.expressad.mbbanner.a.c.c cVar2 = cVar.d;
if (cVar2 != null) {
cVar2.d();
}
}
static void c(c cVar) {
ImageView imageView;
if (cVar.e && (imageView = cVar.j) != null && imageView.getVisibility() == 0) {
cVar.j.setVisibility(8);
cVar.j.setOnClickListener(null);
if (cVar.g == null || cVar.j.getParent() == null) {
return;
}
cVar.g.removeView(cVar.j);
}
}
static void m(c cVar) {
if (cVar.h != null) {
ATBannerWebView aTBannerWebView = cVar.i;
if (aTBannerWebView != null) {
aTBannerWebView.setVisibility(8);
}
if (cVar.h.getVisibility() != 0) {
cVar.h.setVisibility(0);
}
if (cVar.g != null) {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
layoutParams.addRule(10);
cVar.h.setScaleType(ImageView.ScaleType.FIT_XY);
if (cVar.h.getParent() == null) {
cVar.g.addView(cVar.h, layoutParams);
}
cVar.d(true);
}
}
}
}