- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
76 lines
2.0 KiB
Java
76 lines
2.0 KiB
Java
package com.iab.omid.library.unity3d.internal;
|
|
|
|
import android.content.Context;
|
|
import android.os.Handler;
|
|
import com.iab.omid.library.unity3d.internal.d;
|
|
import com.iab.omid.library.unity3d.walking.TreeWalker;
|
|
import java.util.Iterator;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class h implements d.a, com.iab.omid.library.unity3d.devicevolume.c {
|
|
private static h f;
|
|
private float a = 0.0f;
|
|
private final com.iab.omid.library.unity3d.devicevolume.e b;
|
|
private final com.iab.omid.library.unity3d.devicevolume.b c;
|
|
private com.iab.omid.library.unity3d.devicevolume.d d;
|
|
private c e;
|
|
|
|
public h(com.iab.omid.library.unity3d.devicevolume.e eVar, com.iab.omid.library.unity3d.devicevolume.b bVar) {
|
|
this.b = eVar;
|
|
this.c = bVar;
|
|
}
|
|
|
|
private c a() {
|
|
if (this.e == null) {
|
|
this.e = c.c();
|
|
}
|
|
return this.e;
|
|
}
|
|
|
|
public static h c() {
|
|
if (f == null) {
|
|
f = new h(new com.iab.omid.library.unity3d.devicevolume.e(), new com.iab.omid.library.unity3d.devicevolume.b());
|
|
}
|
|
return f;
|
|
}
|
|
|
|
@Override // com.iab.omid.library.unity3d.devicevolume.c
|
|
public void a(float f2) {
|
|
this.a = f2;
|
|
Iterator<com.iab.omid.library.unity3d.adsession.a> it = a().a().iterator();
|
|
while (it.hasNext()) {
|
|
it.next().getAdSessionStatePublisher().a(f2);
|
|
}
|
|
}
|
|
|
|
public void a(Context context) {
|
|
this.d = this.b.a(new Handler(), context, this.c.a(), this);
|
|
}
|
|
|
|
@Override // com.iab.omid.library.unity3d.internal.d.a
|
|
public void a(boolean z) {
|
|
if (z) {
|
|
TreeWalker.getInstance().h();
|
|
} else {
|
|
TreeWalker.getInstance().g();
|
|
}
|
|
}
|
|
|
|
public float b() {
|
|
return this.a;
|
|
}
|
|
|
|
public void d() {
|
|
b.g().a(this);
|
|
b.g().e();
|
|
TreeWalker.getInstance().h();
|
|
this.d.c();
|
|
}
|
|
|
|
public void e() {
|
|
TreeWalker.getInstance().j();
|
|
b.g().f();
|
|
this.d.d();
|
|
}
|
|
}
|