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

24 lines
866 B
Java

package o;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
/* loaded from: classes5.dex */
public final class fMO {
public static final /* synthetic */ Drawable aAW_(Drawable drawable, Context context, Integer num, Integer num2) {
C14957gcv.e(drawable, "");
C14957gcv.e(context, "");
if (num == null || num2 == null) {
return drawable;
}
Bitmap createBitmap = Bitmap.createBitmap(num.intValue(), num2.intValue(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(createBitmap);
drawable.setBounds(0, 0, num.intValue(), num2.intValue());
drawable.draw(canvas);
return new BitmapDrawable(context.getResources(), createBitmap);
}
}