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

33 lines
944 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
/* loaded from: classes.dex */
public final class JNd implements yBU<Drawable, byte[]> {
private final sqY c;
private final yBU<Bitmap, byte[]> d;
private final yBU<RiR, byte[]> e;
public JNd(sqY sqy, yBU<Bitmap, byte[]> ybu, yBU<RiR, byte[]> ybu2) {
this.c = sqy;
this.d = ybu;
this.e = ybu2;
}
@Override // o.yBU
public final Ezi<byte[]> e(Ezi<Drawable> ezi, unA una) {
Drawable e = ezi.e();
if (e instanceof BitmapDrawable) {
yBU<Bitmap, byte[]> ybu = this.d;
Bitmap bitmap = ((BitmapDrawable) e).getBitmap();
return ybu.e(bitmap != null ? new EQc(bitmap, this.c) : null, una);
}
if (e instanceof RiR) {
return this.e.e(ezi, una);
}
return null;
}
}