- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
145 lines
3.9 KiB
Java
145 lines
3.9 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.g2;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.u6;
|
|
import kotlin.Lazy;
|
|
import kotlin.LazyKt__LazyJVMKt;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.Lambda;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class u6 {
|
|
private final g2 a;
|
|
private final b2 b;
|
|
private final y5 c;
|
|
private final Lazy d;
|
|
private final Lazy e;
|
|
private final boolean f;
|
|
private final boolean g;
|
|
private final boolean h;
|
|
|
|
public static final class a extends Lambda implements Function0 {
|
|
public a() {
|
|
super(0);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(u6 this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.c.e();
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public final pk invoke() {
|
|
final u6 u6Var = u6.this;
|
|
return new pk(new Runnable() { // from class: com.ironsource.u6$a$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
u6.a.a(u6.this);
|
|
}
|
|
}, com.ironsource.lifecycle.b.d(), new nt());
|
|
}
|
|
}
|
|
|
|
public static final class b extends Lambda implements Function0 {
|
|
public b() {
|
|
super(0);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(u6 this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.c.f();
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public final pk invoke() {
|
|
final u6 u6Var = u6.this;
|
|
return new pk(new Runnable() { // from class: com.ironsource.u6$b$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
u6.b.a(u6.this);
|
|
}
|
|
}, com.ironsource.lifecycle.b.d(), new nt());
|
|
}
|
|
}
|
|
|
|
public u6(g2 loadingData, b2 interactionData, y5 mListener) {
|
|
Lazy lazy;
|
|
Lazy lazy2;
|
|
Intrinsics.checkNotNullParameter(loadingData, "loadingData");
|
|
Intrinsics.checkNotNullParameter(interactionData, "interactionData");
|
|
Intrinsics.checkNotNullParameter(mListener, "mListener");
|
|
this.a = loadingData;
|
|
this.b = interactionData;
|
|
this.c = mListener;
|
|
lazy = LazyKt__LazyJVMKt.lazy(new a());
|
|
this.d = lazy;
|
|
lazy2 = LazyKt__LazyJVMKt.lazy(new b());
|
|
this.e = lazy2;
|
|
this.f = loadingData.b() > 0;
|
|
this.g = interactionData.b() > 0;
|
|
this.h = loadingData.a() == g2.a.MANUAL_WITH_LOAD_ON_SHOW;
|
|
}
|
|
|
|
private final void a(long j) {
|
|
if (this.h && this.f) {
|
|
c().a(j);
|
|
}
|
|
}
|
|
|
|
private final void b(long j) {
|
|
if (this.h && this.g) {
|
|
d().a(j);
|
|
}
|
|
}
|
|
|
|
private final pk c() {
|
|
return (pk) this.d.getValue();
|
|
}
|
|
|
|
private final pk d() {
|
|
return (pk) this.e.getValue();
|
|
}
|
|
|
|
private final void f() {
|
|
if (this.h) {
|
|
c().b();
|
|
}
|
|
}
|
|
|
|
private final void g() {
|
|
if (this.h) {
|
|
d().b();
|
|
}
|
|
}
|
|
|
|
public final void a() {
|
|
IronLog.INTERNAL.verbose();
|
|
f();
|
|
}
|
|
|
|
public final void b() {
|
|
IronLog.INTERNAL.verbose();
|
|
g();
|
|
}
|
|
|
|
public final void e() {
|
|
IronLog.INTERNAL.verbose();
|
|
b(this.b.b());
|
|
}
|
|
|
|
public final void h() {
|
|
if (!this.f) {
|
|
IronLog.INTERNAL.verbose("banner reload interval is disabled");
|
|
} else {
|
|
IronLog.INTERNAL.verbose();
|
|
a(this.a.b());
|
|
}
|
|
}
|
|
}
|