package com.tencent.mm.boot.svg.a.a;

import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.svg.WeChatSVGRenderC2Java;
import com.tencent.mm.svg.c;

public final class fx extends c {
    private final int height = 24;
    private final int width = 24;

    public final int a(int i, Object... objArr) {
        switch (i) {
            case 0:
                return 24;
            case 1:
                return 24;
            case 2:
                Canvas canvas = (Canvas) objArr[0];
                Looper looper = (Looper) objArr[1];
                Matrix h = c.h(looper);
                float[] g = c.g(looper);
                Paint k = c.k(looper);
                k.setFlags(385);
                k.setStyle(Style.FILL);
                Paint k2 = c.k(looper);
                k2.setFlags(385);
                k2.setStyle(Style.STROKE);
                k.setColor(-16777216);
                k2.setStrokeWidth(1.0f);
                k2.setStrokeCap(Cap.BUTT);
                k2.setStrokeJoin(Join.MITER);
                k2.setStrokeMiter(4.0f);
                k2.setPathEffect(null);
                c.a(k2, looper).setStrokeWidth(1.0f);
                canvas.save();
                g = c.a(g, 1.0f, 0.0f, -60.0f, 0.0f, 1.0f, -60.0f);
                h.reset();
                h.setValues(g);
                canvas.concat(h);
                canvas.save();
                g = c.a(g, 1.0f, 0.0f, 60.0f, 0.0f, 1.0f, 60.0f);
                h.reset();
                h.setValues(g);
                canvas.concat(h);
                Path l = c.l(looper);
                l.moveTo(0.0f, 0.0f);
                l.lineTo(24.0f, 0.0f);
                l.lineTo(24.0f, 24.0f);
                l.lineTo(0.0f, 24.0f);
                l.lineTo(0.0f, 0.0f);
                l.close();
                canvas.save();
                Paint a = c.a(k, looper);
                a.setColor(-1);
                l = c.l(looper);
                l.moveTo(20.292746f, 12.457271f);
                l.lineTo(5.766108f, 21.589363f);
                l.cubicTo(5.5323234f, 21.73633f, 5.223663f, 21.66595f, 5.0766954f, 21.432167f);
                l.cubicTo(5.026585f, 21.352453f, 5.0f, 21.260212f, 5.0f, 21.166058f);
                l.lineTo(5.0f, 2.9018748f);
                l.cubicTo(5.0f, 2.6257324f, 5.2238574f, 2.4018748f, 5.5f, 2.4018748f);
                l.cubicTo(5.594155f, 2.4018748f, 5.6863956f, 2.42846f, 5.766108f, 2.4785705f);
                l.lineTo(20.292746f, 11.610662f);
                l.cubicTo(20.52653f, 11.757629f, 20.596909f, 12.06629f, 20.449942f, 12.300075f);
                l.cubicTo(20.410004f, 12.3636055f, 20.356277f, 12.417333f, 20.292746f, 12.457271f);
                l.close();
                WeChatSVGRenderC2Java.setFillType(l, 2);
                canvas.drawPath(l, a);
                canvas.restore();
                canvas.restore();
                canvas.restore();
                c.j(looper);
                break;
        }
        return 0;
    }
}
