43 lines
1.4 KiB
Java
43 lines
1.4 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.Resources;
|
|
import android.graphics.Bitmap;
|
|
import android.graphics.BitmapFactory;
|
|
import com.squareup.picasso.Picasso;
|
|
import java.io.IOException;
|
|
import o.AbstractC12987fNZ;
|
|
|
|
/* renamed from: o.fOb, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C13021fOb extends AbstractC12987fNZ {
|
|
private final Context c;
|
|
|
|
public C13021fOb(Context context) {
|
|
this.c = context;
|
|
}
|
|
|
|
@Override // o.AbstractC12987fNZ
|
|
public final boolean d(fNW fnw) {
|
|
if (fnw.k != 0) {
|
|
return true;
|
|
}
|
|
return "android.resource".equals(fnw.r.getScheme());
|
|
}
|
|
|
|
@Override // o.AbstractC12987fNZ
|
|
public final AbstractC12987fNZ.Sts c(fNW fnw, int i) throws IOException {
|
|
Resources aBI_ = C13025fOf.aBI_(this.c, fnw);
|
|
return new AbstractC12987fNZ.Sts(aBz_(aBI_, C13025fOf.aBH_(aBI_, fnw), fnw), Picasso.HBt.DISK);
|
|
}
|
|
|
|
private static Bitmap aBz_(Resources resources, int i, fNW fnw) {
|
|
BitmapFactory.Options aBx_ = aBx_(fnw);
|
|
if (aBx_ != null && aBx_.inJustDecodeBounds) {
|
|
BitmapFactory.decodeResource(resources, i, aBx_);
|
|
AbstractC12987fNZ.aBw_(fnw.p, fnw.s, aBx_.outWidth, aBx_.outHeight, aBx_, fnw);
|
|
}
|
|
return BitmapFactory.decodeResource(resources, i, aBx_);
|
|
}
|
|
}
|