package xyz.stream.view.refresh.footer;

import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.Rect;
import androidx.annotation.NonNull;
import xyz.stream.view.refresh.drawable.PaintDrawable;

/* JADX INFO: loaded from: classes3.dex */
public class ArrowDrawable extends PaintDrawable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f36557a = 0;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f36558b = 0;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Path f36559c = new Path();

    @Override // android.graphics.drawable.Drawable
    public void draw(@NonNull Canvas canvas) {
        Rect bounds = getBounds();
        int iWidth = bounds.width();
        int iHeight = bounds.height();
        int i10 = this.f36557a;
        Path path = this.f36559c;
        if (i10 != iWidth || this.f36558b != iHeight) {
            path.reset();
            float f10 = (iWidth * 30) / 225;
            float f11 = f10 * 0.70710677f;
            float f12 = f10 / 0.70710677f;
            float f13 = iWidth;
            float f14 = f13 / 2.0f;
            float f15 = iHeight;
            path.moveTo(f14, f15);
            float f16 = f15 / 2.0f;
            path.lineTo(0.0f, f16);
            float f17 = f16 - f11;
            path.lineTo(f11, f17);
            float f18 = f10 / 2.0f;
            float f19 = f14 - f18;
            float f20 = (f15 - f12) - f18;
            path.lineTo(f19, f20);
            path.lineTo(f19, 0.0f);
            float f21 = f14 + f18;
            path.lineTo(f21, 0.0f);
            path.lineTo(f21, f20);
            path.lineTo(f13 - f11, f17);
            path.lineTo(f13, f16);
            path.close();
            this.f36557a = iWidth;
            this.f36558b = iHeight;
        }
        canvas.drawPath(path, this.mPaint);
    }
}
