- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
60 lines
1.1 KiB
Java
60 lines
1.1 KiB
Java
package com.applovin.impl.adview;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.view.View;
|
|
import com.applovin.impl.ea;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class k extends View {
|
|
private final ea a;
|
|
private boolean b;
|
|
|
|
public interface a {
|
|
void a();
|
|
|
|
void onFailure();
|
|
}
|
|
|
|
public boolean a() {
|
|
return this.b;
|
|
}
|
|
|
|
public void b() {
|
|
a(null);
|
|
}
|
|
|
|
public String getIdentifier() {
|
|
return this.a.b();
|
|
}
|
|
|
|
public void a(a aVar) {
|
|
if (this.b) {
|
|
if (aVar != null) {
|
|
aVar.a();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
Drawable a2 = this.a.a();
|
|
if (a2 == null) {
|
|
if (aVar != null) {
|
|
aVar.onFailure();
|
|
}
|
|
} else {
|
|
setBackground(a2);
|
|
this.b = true;
|
|
if (aVar != null) {
|
|
aVar.a();
|
|
}
|
|
}
|
|
}
|
|
|
|
public k(ea eaVar, Context context) {
|
|
super(context);
|
|
this.a = eaVar;
|
|
setClickable(false);
|
|
setFocusable(false);
|
|
}
|
|
}
|