package androidx.transition;

import X6FRs_4.JZJr_16.H5YG8fq_22;
import X6FRs_4.JZJr_16.RfjZ_21;
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
/* loaded from: classes.dex */
public class ChangeScroll extends Transition {
    public static final String[] KQgRr5e_0 = {"android:changeScroll:x", "android:changeScroll:y"};

    public ChangeScroll() {
    }

    @Override // androidx.transition.Transition
    public void captureEndValues(H5YG8fq_22 h5YG8fq_22) {
        captureValues(h5YG8fq_22);
    }

    @Override // androidx.transition.Transition
    public void captureStartValues(H5YG8fq_22 h5YG8fq_22) {
        captureValues(h5YG8fq_22);
    }

    public final void captureValues(H5YG8fq_22 h5YG8fq_22) {
        h5YG8fq_22.f566KQgRr5e_0.put("android:changeScroll:x", Integer.valueOf(h5YG8fq_22.KQgRr5e_0.getScrollX()));
        h5YG8fq_22.f566KQgRr5e_0.put("android:changeScroll:y", Integer.valueOf(h5YG8fq_22.KQgRr5e_0.getScrollY()));
    }

    @Override // androidx.transition.Transition
    public Animator createAnimator(ViewGroup viewGroup, H5YG8fq_22 h5YG8fq_22, H5YG8fq_22 h5YG8fq_222) {
        ObjectAnimator objectAnimator;
        ObjectAnimator objectAnimator2 = null;
        if (h5YG8fq_22 == null || h5YG8fq_222 == null) {
            return null;
        }
        View view = h5YG8fq_222.KQgRr5e_0;
        int intValue = ((Integer) h5YG8fq_22.f566KQgRr5e_0.get("android:changeScroll:x")).intValue();
        int intValue2 = ((Integer) h5YG8fq_222.f566KQgRr5e_0.get("android:changeScroll:x")).intValue();
        int intValue3 = ((Integer) h5YG8fq_22.f566KQgRr5e_0.get("android:changeScroll:y")).intValue();
        int intValue4 = ((Integer) h5YG8fq_222.f566KQgRr5e_0.get("android:changeScroll:y")).intValue();
        if (intValue != intValue2) {
            view.setScrollX(intValue);
            objectAnimator = ObjectAnimator.ofInt(view, "scrollX", intValue, intValue2);
        } else {
            objectAnimator = null;
        }
        if (intValue3 != intValue4) {
            view.setScrollY(intValue3);
            objectAnimator2 = ObjectAnimator.ofInt(view, "scrollY", intValue3, intValue4);
        }
        return RfjZ_21.KQgRr5e_0(objectAnimator, objectAnimator2);
    }

    @Override // androidx.transition.Transition
    public String[] getTransitionProperties() {
        return KQgRr5e_0;
    }

    public ChangeScroll(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }
}
