61 lines
2.1 KiB
Java
61 lines
2.1 KiB
Java
|
package o;
|
||
|
|
||
|
import android.animation.Animator;
|
||
|
import android.animation.ValueAnimator;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.TextView;
|
||
|
import java.util.Map;
|
||
|
|
||
|
/* renamed from: o.aRv, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class C1915aRv extends VKj {
|
||
|
@Override // o.VKj
|
||
|
public final void b(PaT paT) {
|
||
|
a(paT);
|
||
|
}
|
||
|
|
||
|
@Override // o.VKj
|
||
|
public final void d(PaT paT) {
|
||
|
a(paT);
|
||
|
}
|
||
|
|
||
|
private static void a(PaT paT) {
|
||
|
if (paT.d instanceof TextView) {
|
||
|
paT.a.put("android:textscale:scale", Float.valueOf(((TextView) paT.d).getScaleX()));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.VKj
|
||
|
public final Animator Ka_(ViewGroup viewGroup, PaT paT, PaT paT2) {
|
||
|
if (paT == null || paT2 == null || !(paT.d instanceof TextView) || !(paT2.d instanceof TextView)) {
|
||
|
return null;
|
||
|
}
|
||
|
TextView textView = (TextView) paT2.d;
|
||
|
Map<String, Object> map = paT.a;
|
||
|
Map<String, Object> map2 = paT2.a;
|
||
|
float floatValue = map.get("android:textscale:scale") != null ? ((Float) map.get("android:textscale:scale")).floatValue() : 1.0f;
|
||
|
float floatValue2 = map2.get("android:textscale:scale") != null ? ((Float) map2.get("android:textscale:scale")).floatValue() : 1.0f;
|
||
|
if (floatValue == floatValue2) {
|
||
|
return null;
|
||
|
}
|
||
|
ValueAnimator ofFloat = ValueAnimator.ofFloat(floatValue, floatValue2);
|
||
|
ofFloat.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this, textView) { // from class: o.aRv.1
|
||
|
private C1915aRv a;
|
||
|
private TextView b;
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
this.b = textView;
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||
|
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||
|
float floatValue3 = ((Float) valueAnimator.getAnimatedValue()).floatValue();
|
||
|
this.b.setScaleX(floatValue3);
|
||
|
this.b.setScaleY(floatValue3);
|
||
|
}
|
||
|
});
|
||
|
return ofFloat;
|
||
|
}
|
||
|
}
|