正在查看: CallApp v2.226 应用的 InMobiAdActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CallApp v2.226 应用的 InMobiAdActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.inmobi.ads.rendering;
import aa.a;
import android.R;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.util.SparseArray;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.window.OnBackInvokedCallback;
import android.window.OnBackInvokedDispatcher;
import androidx.appcompat.app.p;
import com.inmobi.ads.rendering.InMobiAdActivity;
import com.inmobi.media.AbstractC0170ab;
import com.inmobi.media.AbstractC0512y2;
import com.inmobi.media.C0254g5;
import com.inmobi.media.C0443t3;
import com.inmobi.media.E3;
import com.inmobi.media.InterfaceC0239f5;
import com.inmobi.media.InterfaceC0481w;
import com.inmobi.media.InterfaceC0495x;
import com.inmobi.media.K9;
import com.inmobi.media.N3;
import com.inmobi.media.P;
import com.inmobi.media.P4;
import com.inmobi.media.Pd;
import com.inmobi.media.Q3;
import com.inmobi.media.R4;
import com.inmobi.media.T4;
import com.inmobi.media.U3;
import com.inmobi.media.Y3;
import com.inmobi.media.Ya;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lcom/inmobi/ads/rendering/InMobiAdActivity;", "Landroid/app/Activity;", "<init>", "()V", "com/inmobi/media/S4", "media_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class InMobiAdActivity extends Activity {
public static final SparseArray k = new SparseArray();
public static Ya l;
public static AbstractC0170ab m;
public R4 a;
public P4 b;
public Ya c;
public int d;
public boolean e;
public boolean f;
public boolean g;
public InterfaceC0239f5 h;
public Pd i;
public OnBackInvokedCallback j;
public static final void a(InMobiAdActivity this$0) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
this$0.a();
}
public static final boolean b(InMobiAdActivity this$0, View view, MotionEvent motionEvent) {
U3 u3;
Intrinsics.checkNotNullParameter(this$0, "this$0");
if (motionEvent.getAction() != 1) {
if (motionEvent.getAction() == 0) {
view.setBackgroundColor(-16711681);
}
return true;
}
view.setBackgroundColor(-7829368);
Ya ya = this$0.c;
if (ya != null && (u3 = ya.o0) != null) {
U3.a(u3, 6, true, null, 12);
}
Ya ya2 = this$0.c;
if (ya2 != null) {
ya2.reload();
}
return true;
}
public static final boolean c(InMobiAdActivity this$0, View view, MotionEvent motionEvent) {
U3 u3;
Intrinsics.checkNotNullParameter(this$0, "this$0");
if (motionEvent.getAction() != 1) {
if (motionEvent.getAction() == 0) {
view.setBackgroundColor(-16711681);
}
return true;
}
view.setBackgroundColor(-7829368);
Ya ya = this$0.c;
if (ya == null || !ya.canGoBack()) {
Ya ya2 = this$0.c;
if (ya2 != null && (u3 = ya2.o0) != null) {
U3.a(u3, 5, true, null, 12);
}
this$0.e = true;
this$0.finish();
} else {
Ya ya3 = this$0.c;
if (ya3 != null) {
ya3.goBack();
}
}
return true;
}
public static final boolean d(InMobiAdActivity this$0, View view, MotionEvent motionEvent) {
Ya ya;
Intrinsics.checkNotNullParameter(this$0, "this$0");
if (motionEvent.getAction() != 1) {
if (motionEvent.getAction() == 0) {
view.setBackgroundColor(-16711681);
}
return true;
}
view.setBackgroundColor(-7829368);
Ya ya2 = this$0.c;
if (ya2 != null && ya2.canGoForward() && (ya = this$0.c) != null) {
ya.goForward();
}
return true;
}
@Override
public final void onBackPressed() {
a();
}
@Override
public final void onConfigurationChanged(Configuration newConfig) {
Intrinsics.checkNotNullParameter(newConfig, "newConfig");
InterfaceC0239f5 interfaceC0239f5 = this.h;
if (interfaceC0239f5 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f5).c("InMobiAdActivity", "onConfigChanged");
}
super.onConfigurationChanged(newConfig);
R4 r4 = this.a;
if (r4 != null) {
r4.b();
}
}
@Override
public final void onCreate(android.os.Bundle r28) {
throw new UnsupportedOperationException("Method not decompiled: com.inmobi.ads.rendering.InMobiAdActivity.onCreate(android.os.Bundle):void");
}
@Override
public final void onDestroy() {
Ya ya;
U3 u3;
InterfaceC0481w fullScreenEventsListener;
InterfaceC0239f5 interfaceC0239f5 = this.h;
if (interfaceC0239f5 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f5).c("InMobiAdActivity", "onDestroy");
}
if (this.e) {
int i = this.d;
if (100 == i) {
Ya ya2 = this.c;
if (ya2 != null && (fullScreenEventsListener = ya2.getFullScreenEventsListener()) != null) {
try {
fullScreenEventsListener.b(this.c);
Ya ya3 = this.c;
Intrinsics.c(ya3);
ya3.b();
R4 r4 = this.a;
if (r4 == null) {
Intrinsics.l("orientationHandler");
throw null;
}
Ya orientationListener = this.c;
Intrinsics.c(orientationListener);
Intrinsics.checkNotNullParameter(orientationListener, "orientationListener");
r4.b.remove(orientationListener);
r4.a();
this.c = null;
} catch (Exception unused) {
}
}
} else if (102 == i) {
P4 orientationListener2 = this.b;
if (orientationListener2 != null) {
R4 r42 = this.a;
if (r42 == null) {
Intrinsics.l("orientationHandler");
throw null;
}
Intrinsics.checkNotNullParameter(orientationListener2, "orientationListener");
r42.b.remove(orientationListener2);
r42.a();
P p = orientationListener2.c;
if (p != null) {
p.b();
}
RelativeLayout relativeLayout = orientationListener2.d;
if (relativeLayout != null) {
relativeLayout.removeAllViews();
}
Q3 q3 = orientationListener2.e;
if (q3 != null) {
Y3 y3 = q3.c;
if (y3 != null) {
y3.destroy();
}
q3.c = null;
q3.d = null;
q3.e = null;
Pd pd = q3.g;
if (pd != null) {
pd.a();
}
q3.removeAllViews();
}
orientationListener2.a.clear();
orientationListener2.b = null;
orientationListener2.c = null;
orientationListener2.d = null;
orientationListener2.e = null;
}
this.b = null;
}
} else {
int i2 = this.d;
if (100 != i2 && 102 == i2) {
P4 orientationListener3 = this.b;
if (orientationListener3 != null) {
R4 r43 = this.a;
if (r43 == null) {
Intrinsics.l("orientationHandler");
throw null;
}
Intrinsics.checkNotNullParameter(orientationListener3, "orientationListener");
r43.b.remove(orientationListener3);
r43.a();
P p2 = orientationListener3.c;
if (p2 != null) {
p2.b();
}
RelativeLayout relativeLayout2 = orientationListener3.d;
if (relativeLayout2 != null) {
relativeLayout2.removeAllViews();
}
Q3 q32 = orientationListener3.e;
if (q32 != null) {
Y3 y32 = q32.c;
if (y32 != null) {
y32.destroy();
}
q32.c = null;
q32.d = null;
q32.e = null;
Pd pd2 = q32.g;
if (pd2 != null) {
pd2.a();
}
q32.removeAllViews();
}
orientationListener3.a.clear();
orientationListener3.b = null;
orientationListener3.c = null;
orientationListener3.d = null;
orientationListener3.e = null;
}
this.b = null;
}
if (100 == this.d && (ya = this.c) != null && (u3 = ya.o0) != null) {
U3.a(u3, 9, true, null, 12);
}
}
Pd pd3 = this.i;
if (pd3 != null) {
pd3.a();
}
super.onDestroy();
}
@Override
public final void onMultiWindowModeChanged(boolean z) {
P4 p4;
R4 r4;
InterfaceC0239f5 interfaceC0239f5 = this.h;
if (interfaceC0239f5 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f5).c("InMobiAdActivity", "multiWindow mode - " + z);
}
super.onMultiWindowModeChanged(z);
if (z || (p4 = this.b) == null) {
return;
}
InterfaceC0495x interfaceC0495x = p4.b;
K9 orientationProperties = (interfaceC0495x == null || !(interfaceC0495x instanceof Ya)) ? null : ((Ya) interfaceC0495x).getOrientationProperties();
if (orientationProperties == null || (r4 = this.a) == null) {
return;
}
r4.a(orientationProperties);
}
@Override
public final void onNewIntent(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
InterfaceC0239f5 interfaceC0239f5 = this.h;
if (interfaceC0239f5 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f5).c("InMobiAdActivity", "onNewIntent");
}
super.onNewIntent(intent);
this.f = false;
this.c = null;
setIntent(intent);
P4 p4 = this.b;
if (p4 != null) {
SparseArray adContainers = k;
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(adContainers, "adContainers");
p4.a(intent, adContainers);
P p = p4.c;
if (p != null) {
p.g();
}
}
}
@Override
public final void onResume() {
P4 p4;
P p;
InterfaceC0481w fullScreenEventsListener;
InterfaceC0239f5 interfaceC0239f5 = this.h;
if (interfaceC0239f5 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f5).c("InMobiAdActivity", "onResume");
}
super.onResume();
if (this.e) {
return;
}
int i = this.d;
if (100 != i) {
if (102 != i || (p4 = this.b) == null || (p = p4.c) == null) {
return;
}
p.c();
return;
}
Ya ya = this.c;
if (ya == null || (fullScreenEventsListener = ya.getFullScreenEventsListener()) == null) {
return;
}
try {
if (this.f) {
return;
}
this.f = true;
fullScreenEventsListener.a(this.c);
} catch (Exception unused) {
}
}
@Override
public final void onStart() {
P4 p4;
Window window;
InterfaceC0239f5 interfaceC0239f5 = this.h;
if (interfaceC0239f5 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f5).c("InMobiAdActivity", "onStart");
}
super.onStart();
E3 e3 = E3.a;
if (e3.B()) {
if (this.j == null) {
this.j = new p(this, 3);
}
OnBackInvokedDispatcher l2 = a.l(this);
OnBackInvokedCallback onBackInvokedCallback = this.j;
if (onBackInvokedCallback == null) {
Intrinsics.l("backInvokedCallback");
throw null;
}
a.C(l2, onBackInvokedCallback);
}
if (this.e || 102 != this.d || (p4 = this.b) == null) {
return;
}
P p = p4.c;
if (p != null) {
p.g();
}
InterfaceC0495x interfaceC0495x = p4.b;
if (interfaceC0495x != null) {
if ((!(interfaceC0495x instanceof Ya) ? false : ((Ya) interfaceC0495x).H0) && !e3.z() && e3.F()) {
Object obj = p4.a.get();
InMobiAdActivity inMobiAdActivity = obj instanceof InMobiAdActivity ? (InMobiAdActivity) obj : null;
if (inMobiAdActivity == null || (window = inMobiAdActivity.getWindow()) == null) {
return;
}
window.getDecorView().setSystemUiVisibility(5638);
}
}
}
@Override
public final void onStop() {
P4 p4;
P p;
InterfaceC0239f5 interfaceC0239f5 = this.h;
if (interfaceC0239f5 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f5).c("InMobiAdActivity", "onStop");
}
super.onStop();
if (E3.a.B() && this.j != null) {
OnBackInvokedDispatcher l2 = a.l(this);
OnBackInvokedCallback onBackInvokedCallback = this.j;
if (onBackInvokedCallback == null) {
Intrinsics.l("backInvokedCallback");
throw null;
}
a.y(l2, onBackInvokedCallback);
}
if (this.e || (p4 = this.b) == null || (p = p4.c) == null) {
return;
}
p.d();
}
public final void a(RelativeLayout relativeLayout) {
float f = N3.d().c;
LinearLayout linearLayout = new LinearLayout(this);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, (int) (48 * f));
linearLayout.setOrientation(0);
linearLayout.setId(65533);
linearLayout.setWeightSum(100.0f);
linearLayout.setBackgroundResource(R.drawable.bottom_bar);
linearLayout.setBackgroundColor(-7829368);
relativeLayout.setBackgroundColor(-7829368);
layoutParams.addRule(12);
if (AbstractC0512y2.a(this)) {
Pd pd = this.i;
if (pd != null) {
pd.a();
}
this.i = new Pd(this, new T4(layoutParams), this.h);
}
relativeLayout.addView(linearLayout, layoutParams);
LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(-1, -1);
layoutParams2.weight = 25.0f;
C0443t3 c0443t3 = new C0443t3(this, (byte) 2, this.h);
final int i = 0;
c0443t3.setOnTouchListener(new View.OnTouchListener(this) {
public final InMobiAdActivity b;
{
this.b = this;
}
@Override
public final boolean onTouch(View view, MotionEvent motionEvent) {
switch (i) {
case 0:
return InMobiAdActivity.a(this.b, view, motionEvent);
case 1:
return InMobiAdActivity.b(this.b, view, motionEvent);
case 2:
return InMobiAdActivity.c(this.b, view, motionEvent);
default:
return InMobiAdActivity.d(this.b, view, motionEvent);
}
}
});
linearLayout.addView(c0443t3, layoutParams2);
C0443t3 c0443t32 = new C0443t3(this, (byte) 3, this.h);
final int i2 = 1;
c0443t32.setOnTouchListener(new View.OnTouchListener(this) {
public final InMobiAdActivity b;
{
this.b = this;
}
@Override
public final boolean onTouch(View view, MotionEvent motionEvent) {
switch (i2) {
case 0:
return InMobiAdActivity.a(this.b, view, motionEvent);
case 1:
return InMobiAdActivity.b(this.b, view, motionEvent);
case 2:
return InMobiAdActivity.c(this.b, view, motionEvent);
default:
return InMobiAdActivity.d(this.b, view, motionEvent);
}
}
});
linearLayout.addView(c0443t32, layoutParams2);
C0443t3 c0443t33 = new C0443t3(this, (byte) 4, this.h);
final int i3 = 2;
c0443t33.setOnTouchListener(new View.OnTouchListener(this) {
public final InMobiAdActivity b;
{
this.b = this;
}
@Override
public final boolean onTouch(View view, MotionEvent motionEvent) {
switch (i3) {
case 0:
return InMobiAdActivity.a(this.b, view, motionEvent);
case 1:
return InMobiAdActivity.b(this.b, view, motionEvent);
case 2:
return InMobiAdActivity.c(this.b, view, motionEvent);
default:
return InMobiAdActivity.d(this.b, view, motionEvent);
}
}
});
linearLayout.addView(c0443t33, layoutParams2);
C0443t3 c0443t34 = new C0443t3(this, (byte) 6, this.h);
final int i4 = 3;
c0443t34.setOnTouchListener(new View.OnTouchListener(this) {
public final InMobiAdActivity b;
{
this.b = this;
}
@Override
public final boolean onTouch(View view, MotionEvent motionEvent) {
switch (i4) {
case 0:
return InMobiAdActivity.a(this.b, view, motionEvent);
case 1:
return InMobiAdActivity.b(this.b, view, motionEvent);
case 2:
return InMobiAdActivity.c(this.b, view, motionEvent);
default:
return InMobiAdActivity.d(this.b, view, motionEvent);
}
}
});
linearLayout.addView(c0443t34, layoutParams2);
}
@Override
public final void onMultiWindowModeChanged(boolean z, Configuration newConfig) {
Intrinsics.checkNotNullParameter(newConfig, "newConfig");
super.onMultiWindowModeChanged(z, newConfig);
onMultiWindowModeChanged(z);
}
public static final boolean a(InMobiAdActivity this$0, View view, MotionEvent motionEvent) {
U3 u3;
Intrinsics.checkNotNullParameter(this$0, "this$0");
if (motionEvent.getAction() == 1) {
view.setBackgroundColor(-7829368);
Ya ya = this$0.c;
if (ya != null && (u3 = ya.o0) != null) {
U3.a(u3, 5, true, null, 12);
}
this$0.e = true;
this$0.finish();
return true;
}
if (motionEvent.getAction() == 0) {
view.setBackgroundColor(-16711681);
}
return true;
}
public final void a() {
U3 u3;
P p;
InterfaceC0239f5 interfaceC0239f5 = this.h;
if (interfaceC0239f5 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f5).c("InMobiAdActivity", "onBackPressed");
}
int i = this.d;
if (i == 102) {
InterfaceC0239f5 interfaceC0239f52 = this.h;
if (interfaceC0239f52 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f52).c("InMobiAdActivity", "back pressed on ad");
}
P4 p4 = this.b;
if (p4 == null || (p = p4.c) == null) {
return;
}
p.a();
return;
}
if (i == 100) {
InterfaceC0239f5 interfaceC0239f53 = this.h;
if (interfaceC0239f53 != null) {
Intrinsics.checkNotNullExpressionValue("InMobiAdActivity", "TAG");
((C0254g5) interfaceC0239f53).c("InMobiAdActivity", "back pressed in browser");
}
Ya ya = this.c;
if (ya != null && (u3 = ya.o0) != null) {
U3.a(u3, 7, true, null, 12);
}
this.e = true;
finish();
}
}
}