91 lines
2.9 KiB
Java
91 lines
2.9 KiB
Java
package o;
|
|
|
|
import android.animation.ArgbEvaluator;
|
|
import android.animation.PropertyValuesHolder;
|
|
import android.animation.ValueAnimator;
|
|
import android.view.animation.AccelerateDecelerateInterpolator;
|
|
import o.NPh;
|
|
|
|
/* renamed from: o.yaU, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public class C17642yaU extends XKS<ValueAnimator> {
|
|
int a;
|
|
int e;
|
|
private CKA i;
|
|
|
|
public C17642yaU(NPh.RVV rvv) {
|
|
super(rvv);
|
|
this.i = new CKA();
|
|
}
|
|
|
|
@Override // o.XKS
|
|
/* renamed from: PM_, reason: merged with bridge method [inline-methods] */
|
|
public ValueAnimator PW_() {
|
|
ValueAnimator valueAnimator = new ValueAnimator();
|
|
valueAnimator.setDuration(350L);
|
|
valueAnimator.setInterpolator(new AccelerateDecelerateInterpolator());
|
|
valueAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: o.yaU.4
|
|
private C17642yaU d;
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
|
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
|
public final void onAnimationUpdate(ValueAnimator valueAnimator2) {
|
|
C17642yaU.Py_(this.d, valueAnimator2);
|
|
}
|
|
});
|
|
return valueAnimator;
|
|
}
|
|
|
|
public final C17642yaU d(int i, int i2) {
|
|
if (this.c != 0 && (this.a != i || this.e != i2)) {
|
|
this.a = i;
|
|
this.e = i2;
|
|
((ValueAnimator) this.c).setValues(PB_(false), PB_(true));
|
|
}
|
|
return this;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final PropertyValuesHolder PB_(boolean z) {
|
|
int i;
|
|
int i2;
|
|
String str;
|
|
if (z) {
|
|
i = this.e;
|
|
i2 = this.a;
|
|
str = "ANIMATION_COLOR_REVERSE";
|
|
} else {
|
|
i = this.a;
|
|
i2 = this.e;
|
|
str = "ANIMATION_COLOR";
|
|
}
|
|
PropertyValuesHolder ofInt = PropertyValuesHolder.ofInt(str, i, i2);
|
|
ofInt.setEvaluator(new ArgbEvaluator());
|
|
return ofInt;
|
|
}
|
|
|
|
static /* synthetic */ void Py_(C17642yaU c17642yaU, ValueAnimator valueAnimator) {
|
|
int intValue = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_COLOR")).intValue();
|
|
int intValue2 = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_COLOR_REVERSE")).intValue();
|
|
c17642yaU.i.e = intValue;
|
|
c17642yaU.i.b = intValue2;
|
|
if (c17642yaU.b != null) {
|
|
c17642yaU.b.b(c17642yaU.i);
|
|
}
|
|
}
|
|
|
|
@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;
|
|
}
|
|
}
|