package IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.FSaI4_7;

import IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7;
import IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.IFxWkV_5;
import IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.IMuAHx_6;
import IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.Xgtqvk_8;
import IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.XnFJ5_9;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
/* compiled from: InternalAbstract.java */
/* loaded from: classes.dex */
public abstract class QxJ9d_1 extends RelativeLayout implements FSaI4_7 {
    public IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2 KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public FSaI4_7 f255KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public View f256KQgRr5e_0;

    public QxJ9d_1(View view) {
        this(view, view instanceof FSaI4_7 ? (FSaI4_7) view : null);
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public int KQgRr5e_0(XnFJ5_9 xnFJ5_9, boolean z) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 == null || fSaI4_7 == this) {
            return 0;
        }
        return fSaI4_7.KQgRr5e_0(xnFJ5_9, z);
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public void QxJ9d_1(XnFJ5_9 xnFJ5_9, int i, int i2) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 == null || fSaI4_7 == this) {
            return;
        }
        fSaI4_7.QxJ9d_1(xnFJ5_9, i, i2);
    }

    public boolean equals(Object obj) {
        if (super.equals(obj)) {
            return true;
        }
        return (obj instanceof FSaI4_7) && getView() == ((FSaI4_7) obj).getView();
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2 getSpinnerStyle() {
        int i;
        IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2[] pGPF6hQ_2Arr;
        IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2 pGPF6hQ_2 = this.KQgRr5e_0;
        if (pGPF6hQ_2 != null) {
            return pGPF6hQ_2;
        }
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 != null && fSaI4_7 != this) {
            return fSaI4_7.getSpinnerStyle();
        }
        View view = this.f256KQgRr5e_0;
        if (view != null) {
            ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
            if (layoutParams instanceof SmartRefreshLayout.LayoutParams) {
                IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2 pGPF6hQ_22 = ((SmartRefreshLayout.LayoutParams) layoutParams).f2898KQgRr5e_0;
                this.KQgRr5e_0 = pGPF6hQ_22;
                if (pGPF6hQ_22 != null) {
                    return pGPF6hQ_22;
                }
            }
            if (layoutParams != null && ((i = layoutParams.height) == 0 || i == -1)) {
                for (IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2 pGPF6hQ_23 : IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2.f260KQgRr5e_0) {
                    if (pGPF6hQ_23.f263QxJ9d_1) {
                        this.KQgRr5e_0 = pGPF6hQ_23;
                        return pGPF6hQ_23;
                    }
                }
            }
        }
        IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2 pGPF6hQ_24 = IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2.KQgRr5e_0;
        this.KQgRr5e_0 = pGPF6hQ_24;
        return pGPF6hQ_24;
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public View getView() {
        View view = this.f256KQgRr5e_0;
        return view == null ? this : view;
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public void setPrimaryColors(int... iArr) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 == null || fSaI4_7 == this) {
            return;
        }
        fSaI4_7.setPrimaryColors(iArr);
    }

    public QxJ9d_1(View view, FSaI4_7 fSaI4_7) {
        super(view.getContext(), null, 0);
        this.f256KQgRr5e_0 = view;
        this.f255KQgRr5e_0 = fSaI4_7;
        if ((this instanceof IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IMuAHx_6.QxJ9d_1) && (fSaI4_7 instanceof IMuAHx_6) && fSaI4_7.getSpinnerStyle() == IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2.f3087X6FRs_4) {
            fSaI4_7.getView().setScaleY(-1.0f);
        } else if (this instanceof IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IMuAHx_6.PGPF6hQ_2) {
            FSaI4_7 fSaI4_72 = this.f255KQgRr5e_0;
            if ((fSaI4_72 instanceof IFxWkV_5) && fSaI4_72.getSpinnerStyle() == IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.PGPF6hQ_2.f3087X6FRs_4) {
                fSaI4_7.getView().setScaleY(-1.0f);
            }
        }
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public void KQgRr5e_0(Xgtqvk_8 xgtqvk_8, int i, int i2) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 != null && fSaI4_7 != this) {
            fSaI4_7.KQgRr5e_0(xgtqvk_8, i, i2);
            return;
        }
        View view = this.f256KQgRr5e_0;
        if (view != null) {
            ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
            if (layoutParams instanceof SmartRefreshLayout.LayoutParams) {
                xgtqvk_8.KQgRr5e_0(this, ((SmartRefreshLayout.LayoutParams) layoutParams).KQgRr5e_0);
            }
        }
    }

    public QxJ9d_1(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public boolean KQgRr5e_0() {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        return (fSaI4_7 == null || fSaI4_7 == this || !fSaI4_7.KQgRr5e_0()) ? false : true;
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public void KQgRr5e_0(float f, int i, int i2) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 == null || fSaI4_7 == this) {
            return;
        }
        fSaI4_7.KQgRr5e_0(f, i, i2);
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public void KQgRr5e_0(boolean z, float f, int i, int i2, int i3) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 == null || fSaI4_7 == this) {
            return;
        }
        fSaI4_7.KQgRr5e_0(z, f, i, i2, i3);
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.X6FRs_4.FSaI4_7
    public void KQgRr5e_0(XnFJ5_9 xnFJ5_9, int i, int i2) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 == null || fSaI4_7 == this) {
            return;
        }
        fSaI4_7.KQgRr5e_0(xnFJ5_9, i, i2);
    }

    @Override // IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.Xgtqvk_8.IFxWkV_5
    public void KQgRr5e_0(XnFJ5_9 xnFJ5_9, IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.QxJ9d_1 qxJ9d_1, IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IFxWkV_5.QxJ9d_1 qxJ9d_12) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        if (fSaI4_7 == null || fSaI4_7 == this) {
            return;
        }
        if ((this instanceof IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IMuAHx_6.QxJ9d_1) && (fSaI4_7 instanceof IMuAHx_6)) {
            if (qxJ9d_1.f269PGPF6hQ_2) {
                qxJ9d_1 = qxJ9d_1.QxJ9d_1();
            }
            if (qxJ9d_12.f269PGPF6hQ_2) {
                qxJ9d_12 = qxJ9d_12.QxJ9d_1();
            }
        } else if ((this instanceof IMuAHx_6.Mqv2r_3.KQgRr5e_0.QxJ9d_1.IMuAHx_6.PGPF6hQ_2) && (this.f255KQgRr5e_0 instanceof IFxWkV_5)) {
            if (qxJ9d_1.f270QxJ9d_1) {
                qxJ9d_1 = qxJ9d_1.KQgRr5e_0();
            }
            if (qxJ9d_12.f270QxJ9d_1) {
                qxJ9d_12 = qxJ9d_12.KQgRr5e_0();
            }
        }
        FSaI4_7 fSaI4_72 = this.f255KQgRr5e_0;
        if (fSaI4_72 != null) {
            fSaI4_72.KQgRr5e_0(xnFJ5_9, qxJ9d_1, qxJ9d_12);
        }
    }

    @SuppressLint({"RestrictedApi"})
    public boolean KQgRr5e_0(boolean z) {
        FSaI4_7 fSaI4_7 = this.f255KQgRr5e_0;
        return (fSaI4_7 instanceof IFxWkV_5) && ((IFxWkV_5) fSaI4_7).KQgRr5e_0(z);
    }
}
