package z;

import android.view.View;
import androidx.constraintlayout.motion.widget.MotionLayout;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import xyz.stream.utils.f0;

/* JADX INFO: loaded from: classes.dex */
public final class o extends p {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public boolean f37007k;

    @Override // z.p
    public final boolean f(float f10, long j10, View view, f0 f0Var) {
        Method method;
        if (view instanceof MotionLayout) {
            ((MotionLayout) view).setProgress(d(f10, j10, view, f0Var));
        } else {
            if (this.f37007k) {
                return false;
            }
            try {
                method = view.getClass().getMethod("setProgress", Float.TYPE);
            } catch (NoSuchMethodException unused) {
                this.f37007k = true;
                method = null;
            }
            if (method != null) {
                try {
                    method.invoke(view, Float.valueOf(d(f10, j10, view, f0Var)));
                } catch (IllegalAccessException | InvocationTargetException unused2) {
                }
            }
        }
        return this.f33628h;
    }
}
