package X6FRs_4.JZJr_16;

import android.util.Log;
import android.view.View;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/* compiled from: ViewUtilsApi19.java */
/* loaded from: classes.dex */
public class R6WQ_35 extends QNpr_38 {
    public static Method KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public static boolean f588KQgRr5e_0;
    public static Method QxJ9d_1;

    /* renamed from: QxJ9d_1  reason: collision with other field name */
    public static boolean f589QxJ9d_1;

    @Override // X6FRs_4.JZJr_16.QNpr_38
    public void KQgRr5e_0(View view) {
    }

    @Override // X6FRs_4.JZJr_16.QNpr_38
    public void KQgRr5e_0(View view, float f) {
        QxJ9d_1();
        Method method = KQgRr5e_0;
        if (method != null) {
            try {
                method.invoke(view, Float.valueOf(f));
                return;
            } catch (IllegalAccessException unused) {
                return;
            } catch (InvocationTargetException e) {
                throw new RuntimeException(e.getCause());
            }
        }
        view.setAlpha(f);
    }

    public final void QxJ9d_1() {
        if (f588KQgRr5e_0) {
            return;
        }
        try {
            Method declaredMethod = View.class.getDeclaredMethod("setTransitionAlpha", Float.TYPE);
            KQgRr5e_0 = declaredMethod;
            declaredMethod.setAccessible(true);
        } catch (NoSuchMethodException e) {
            Log.i("ViewUtilsApi19", "Failed to retrieve setTransitionAlpha method", e);
        }
        f588KQgRr5e_0 = true;
    }

    @Override // X6FRs_4.JZJr_16.QNpr_38
    public void QxJ9d_1(View view) {
    }

    @Override // X6FRs_4.JZJr_16.QNpr_38
    public float KQgRr5e_0(View view) {
        KQgRr5e_0();
        Method method = QxJ9d_1;
        if (method != null) {
            try {
                return ((Float) method.invoke(view, new Object[0])).floatValue();
            } catch (IllegalAccessException unused) {
            } catch (InvocationTargetException e) {
                throw new RuntimeException(e.getCause());
            }
        }
        return super.KQgRr5e_0(view);
    }

    public final void KQgRr5e_0() {
        if (f589QxJ9d_1) {
            return;
        }
        try {
            Method declaredMethod = View.class.getDeclaredMethod("getTransitionAlpha", new Class[0]);
            QxJ9d_1 = declaredMethod;
            declaredMethod.setAccessible(true);
        } catch (NoSuchMethodException e) {
            Log.i("ViewUtilsApi19", "Failed to retrieve getTransitionAlpha method", e);
        }
        f589QxJ9d_1 = true;
    }
}
