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

39 lines
1.1 KiB
Java

package o;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import java.io.IOException;
/* loaded from: classes.dex */
public final class NTO<DataType> implements iYP<DataType, BitmapDrawable> {
private final iYP<DataType, Bitmap> c;
private final Resources d;
public NTO(Resources resources, iYP<DataType, Bitmap> iyp) {
if (resources == null) {
throw new NullPointerException("Argument must not be null");
}
this.d = resources;
if (iyp == null) {
throw new NullPointerException("Argument must not be null");
}
this.c = iyp;
}
@Override // o.iYP
public final boolean a(DataType datatype, unA una) throws IOException {
return this.c.a(datatype, una);
}
@Override // o.iYP
public final Ezi<BitmapDrawable> a(DataType datatype, int i, int i2, unA una) throws IOException {
Ezi<Bitmap> a = this.c.a(datatype, i, i2, una);
Resources resources = this.d;
if (a == null) {
return null;
}
return new JzU(resources, a);
}
}