package h3;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.LinearGradient;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Shader;
import android.view.View;

/* JADX INFO: renamed from: h3.o0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2163o0 extends View {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Paint f18331a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Paint f18332b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2163o0(Context context) {
        super(context);
        kotlin.jvm.internal.o.h(context, "context");
        Paint paint = new Paint(1);
        Paint.Style style = Paint.Style.FILL;
        paint.setStyle(style);
        this.f18331a = paint;
        Paint paint2 = new Paint(1);
        paint2.setStyle(style);
        paint2.setColor(-16777216);
        this.f18332b = paint2;
    }

    @Override // android.view.View
    public final void onDraw(Canvas canvas) {
        kotlin.jvm.internal.o.h(canvas, "canvas");
        super.onDraw(canvas);
        float width = getWidth();
        float height = getHeight();
        if (width <= 0.0f || height <= 0.0f) {
            return;
        }
        float fMin = Math.min(width / 579.0f, height / 647.0f);
        Matrix matrix = new Matrix();
        matrix.setScale(fMin, fMin);
        matrix.postTranslate((width - (579.0f * fMin)) / 2.0f, (height - (647.0f * fMin)) / 2.0f);
        Path path = new Path();
        Object value = Z1.f17674a.getValue();
        kotlin.jvm.internal.o.g(value, "getValue(...)");
        path.addPath((Path) value, matrix);
        Paint paint = this.f18331a;
        paint.setShader(new LinearGradient(0.0f, 0.0f, width, height, new int[]{-718310, -718227}, (float[]) null, Shader.TileMode.CLAMP));
        canvas.drawPath(path, paint);
        Path path2 = new Path();
        Object value2 = Z1.f17675b.getValue();
        kotlin.jvm.internal.o.g(value2, "getValue(...)");
        path2.addPath((Path) value2, matrix);
        canvas.drawPath(path2, this.f18332b);
    }
}
