package b.e.c;

import android.content.Context;
import android.util.AttributeSet;

/* JADX INFO: loaded from: classes.dex */
public class a extends c {
    public int i;
    public int j;
    public b.e.a.j.a k;

    public a(Context context) {
        super(context);
        setVisibility(8);
    }

    public boolean getAllowsGoneWidget() {
        return this.k.u0;
    }

    public int getMargin() {
        return this.k.v0;
    }

    public int getType() {
        return this.i;
    }

    @Override // b.e.c.c
    public void i(AttributeSet attributeSet) {
        super.i(null);
        b.e.a.j.a aVar = new b.e.a.j.a();
        this.k = aVar;
        this.f825d = aVar;
        k();
    }

    /* JADX WARN: Code restructure failed: missing block: B:11:0x0014, code lost:
    
        if (r0 == 6) goto L12;
     */
    /* JADX WARN: Code restructure failed: missing block: B:6:0x000b, code lost:
    
        if (r0 == 6) goto L9;
     */
    @Override // b.e.c.c
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void j(b.e.a.j.d r4, boolean r5) {
        /*
            r3 = this;
            int r0 = r3.i
            r3.j = r0
            r1 = 6
            r2 = 5
            if (r5 == 0) goto Le
            if (r0 != r2) goto Lb
            goto L16
        Lb:
            if (r0 != r1) goto L18
            goto L10
        Le:
            if (r0 != r2) goto L14
        L10:
            r5 = 0
        L11:
            r3.j = r5
            goto L18
        L14:
            if (r0 != r1) goto L18
        L16:
            r5 = 1
            goto L11
        L18:
            boolean r5 = r4 instanceof b.e.a.j.a
            if (r5 == 0) goto L22
            b.e.a.j.a r4 = (b.e.a.j.a) r4
            int r3 = r3.j
            r4.t0 = r3
        L22:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: b.e.c.a.j(b.e.a.j.d, boolean):void");
    }

    public void setAllowsGoneWidget(boolean z) {
        this.k.u0 = z;
    }

    public void setDpMargin(int i) {
        this.k.v0 = (int) ((i * getResources().getDisplayMetrics().density) + 0.5f);
    }

    public void setMargin(int i) {
        this.k.v0 = i;
    }

    public void setType(int i) {
        this.i = i;
    }
}
