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

40 lines
1.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.graphics.Bitmap;
import com.bumptech.glide.Glide;
/* renamed from: o.cDy, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC5945cDy implements wfh<Bitmap> {
protected abstract Bitmap aAK_(sqY sqy, Bitmap bitmap, int i, int i2);
@Override // o.wfh
public final Ezi<Bitmap> b(Context context, Ezi<Bitmap> ezi, int i, int i2) {
if (!FKd.c(i, i2)) {
StringBuilder sb = new StringBuilder("Cannot apply transformation on width: ");
sb.append(i);
sb.append(" or height: ");
sb.append(i2);
sb.append(" less than or equal to zero and not Target.SIZE_ORIGINAL");
throw new IllegalArgumentException(sb.toString());
}
sqY sqy = Glide.a(context).a;
Bitmap e = ezi.e();
if (i == Integer.MIN_VALUE) {
i = e.getWidth();
}
if (i2 == Integer.MIN_VALUE) {
i2 = e.getHeight();
}
Bitmap aAK_ = aAK_(sqy, e, i, i2);
if (e.equals(aAK_)) {
return ezi;
}
if (aAK_ == null) {
return null;
}
return new EQc(aAK_, sqy);
}
}