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

32 lines
865 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
/* loaded from: classes.dex */
public abstract class Znn<T extends Drawable> implements Ezi<T>, WJU {
public final T c;
@Override // o.Ezi
public final /* synthetic */ Object e() {
Drawable.ConstantState constantState = this.c.getConstantState();
return constantState == null ? this.c : constantState.newDrawable();
}
public Znn(T t) {
if (t == null) {
throw new NullPointerException("Argument must not be null");
}
this.c = t;
}
public void c() {
T t = this.c;
if (t instanceof BitmapDrawable) {
((BitmapDrawable) t).getBitmap().prepareToDraw();
} else if (t instanceof RiR) {
((RiR) t).a.c.e.prepareToDraw();
}
}
}