41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Canvas;
|
||
|
import android.graphics.Paint;
|
||
|
import android.text.style.LineBackgroundSpan;
|
||
|
|
||
|
/* renamed from: o.eAh, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C10312eAh implements LineBackgroundSpan {
|
||
|
private final int a;
|
||
|
private final float b;
|
||
|
private float c;
|
||
|
|
||
|
public C10312eAh() {
|
||
|
this.b = 3.0f;
|
||
|
this.c = 25.0f;
|
||
|
this.a = 0;
|
||
|
}
|
||
|
|
||
|
public C10312eAh(float f, float f2, int i) {
|
||
|
this.b = f;
|
||
|
this.c = f2;
|
||
|
this.a = i;
|
||
|
}
|
||
|
|
||
|
@Override // android.text.style.LineBackgroundSpan
|
||
|
public final void drawBackground(Canvas canvas, Paint paint, int i, int i2, int i3, int i4, int i5, CharSequence charSequence, int i6, int i7, int i8) {
|
||
|
int color = paint.getColor();
|
||
|
int i9 = this.a;
|
||
|
if (i9 != 0) {
|
||
|
paint.setColor(i9);
|
||
|
}
|
||
|
float f = (i + i2) / 2.0f;
|
||
|
float f2 = i5;
|
||
|
float f3 = this.c;
|
||
|
float f4 = this.b;
|
||
|
canvas.drawCircle(f, f2 + f3 + f4, f4, paint);
|
||
|
paint.setColor(color);
|
||
|
}
|
||
|
}
|