29 lines
913 B
Java
29 lines
913 B
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.graphics.Bitmap;
|
||
|
import android.graphics.Canvas;
|
||
|
import android.graphics.Paint;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
import android.text.style.ImageSpan;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class fKG extends ImageSpan {
|
||
|
public fKG(Context context, Bitmap bitmap) {
|
||
|
super(context, bitmap);
|
||
|
}
|
||
|
|
||
|
public fKG(Drawable drawable) {
|
||
|
super(drawable);
|
||
|
}
|
||
|
|
||
|
@Override // android.text.style.DynamicDrawableSpan, android.text.style.ReplacementSpan
|
||
|
public final void draw(Canvas canvas, CharSequence charSequence, int i, int i2, float f, int i3, int i4, int i5, Paint paint) {
|
||
|
Drawable drawable = getDrawable();
|
||
|
canvas.save();
|
||
|
canvas.translate(f, (i5 - drawable.getBounds().bottom) - (paint.getFontMetricsInt().descent / 2));
|
||
|
drawable.draw(canvas);
|
||
|
canvas.restore();
|
||
|
}
|
||
|
}
|