package o; import android.animation.IntEvaluator; import android.animation.PropertyValuesHolder; import android.animation.ValueAnimator; import android.view.animation.AccelerateDecelerateInterpolator; import o.NPh; /* loaded from: classes3.dex */ public final class AFA extends XKS { private int a; private int e; private GxW i; public AFA(NPh.RVV rvv) { super(rvv); this.e = -1; this.a = -1; this.i = new GxW(); } public final AFA c(int i, int i2) { if (this.c != 0 && (this.e != i || this.a != i2)) { this.e = i; this.a = i2; PropertyValuesHolder ofInt = PropertyValuesHolder.ofInt("ANIMATION_COORDINATE", i, i2); ofInt.setEvaluator(new IntEvaluator()); ((ValueAnimator) this.c).setValues(ofInt); } return this; } static /* synthetic */ void PP_(AFA afa, ValueAnimator valueAnimator) { afa.i.e = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_COORDINATE")).intValue(); if (afa.b != null) { afa.b.b(afa.i); } } @Override // o.XKS public final /* synthetic */ ValueAnimator PW_() { ValueAnimator valueAnimator = new ValueAnimator(); valueAnimator.setDuration(350L); valueAnimator.setInterpolator(new AccelerateDecelerateInterpolator()); valueAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: o.AFA.3 private AFA b; { this.b = this; } @Override // android.animation.ValueAnimator.AnimatorUpdateListener public final void onAnimationUpdate(ValueAnimator valueAnimator2) { AFA.PP_(this.b, valueAnimator2); } }); return valueAnimator; } @Override // o.XKS public final /* synthetic */ XKS a(float f) { if (this.c != 0) { long j = f * ((float) this.d); if (((ValueAnimator) this.c).getValues() != null && ((ValueAnimator) this.c).getValues().length > 0) { ((ValueAnimator) this.c).setCurrentPlayTime(j); } } return this; } }