what-the-bank/sources/o/pMl.java

85 lines
2.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.graphics.Typeface;
import android.text.TextPaint;
import java.lang.ref.WeakReference;
/* loaded from: classes2.dex */
public final class pMl {
WeakReference<LWm> a;
public Rzh b;
public float d;
public final TextPaint e = new TextPaint(1);
public final Dwp c = new Dwp(this) { // from class: o.pMl.1
private pMl d;
{
this.d = this;
}
@Override // o.Dwp
public final void c(int i) {
this.d.i = true;
LWm lWm = this.d.a.get();
if (lWm != null) {
lWm.d();
}
}
@Override // o.Dwp
public final void KE_(Typeface typeface, boolean z) {
if (z) {
return;
}
this.d.i = true;
LWm lWm = this.d.a.get();
if (lWm != null) {
lWm.d();
}
}
};
public boolean i = true;
/* loaded from: classes2.dex */
public interface LWm {
void d();
int[] getState();
boolean onStateChange(int[] iArr);
}
public pMl(LWm lWm) {
this.a = new WeakReference<>(null);
this.a = new WeakReference<>(lWm);
}
public final void e(Rzh rzh, Context context) {
if (this.b != rzh) {
this.b = rzh;
if (rzh != null) {
TextPaint textPaint = this.e;
Dwp dwp = this.c;
int i = rzh.c;
if ((i != 0 ? kVs.nW_(context, i) : null) != null) {
rzh.KB_(context, textPaint, rzh.Ky_(context));
} else {
rzh.Kz_(context, textPaint, dwp);
}
LWm lWm = this.a.get();
if (lWm != null) {
this.e.drawableState = lWm.getState();
}
rzh.KA_(context, this.e, this.c);
this.i = true;
}
LWm lWm2 = this.a.get();
if (lWm2 != null) {
lWm2.d();
lWm2.onStateChange(lWm2.getState());
}
}
}
}