what-the-bank/sources/o/sjh.java

180 lines
6.1 KiB
Java

package o;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.StateListAnimator;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.graphics.drawable.RippleDrawable;
import android.util.Property;
import android.view.View;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import java.util.ArrayList;
import o.C17052tZT;
/* loaded from: classes2.dex */
public final class sjh extends DuC {
private StateListAnimator H;
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.DuC
public final void d(int[] iArr) {
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.DuC
public final void e() {
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.DuC
public final boolean f() {
return false;
}
@Override // o.DuC
final void l() {
}
public sjh(FloatingActionButton floatingActionButton, mje mjeVar) {
super(floatingActionButton, mjeVar);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.DuC
public final void JF_(ColorStateList colorStateList) {
if (this.y instanceof RippleDrawable) {
((RippleDrawable) this.y).setColor(C0459HUs.KI_(colorStateList));
} else {
super.JF_(colorStateList);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.DuC
public final void b(float f, float f2, float f3) {
if (this.E.getStateListAnimator() == this.H) {
StateListAnimator stateListAnimator = new StateListAnimator();
stateListAnimator.addState(h, JC_(f, f3));
stateListAnimator.addState(i, JC_(f, f2));
stateListAnimator.addState(b, JC_(f, f2));
stateListAnimator.addState(c, JC_(f, f2));
AnimatorSet animatorSet = new AnimatorSet();
ArrayList arrayList = new ArrayList();
arrayList.add(ObjectAnimator.ofFloat(this.E, "elevation", f).setDuration(0L));
arrayList.add(ObjectAnimator.ofFloat(this.E, (Property<FloatingActionButton, Float>) View.TRANSLATION_Z, BitmapDescriptorFactory.HUE_RED).setDuration(100L));
animatorSet.playSequentially((Animator[]) arrayList.toArray(new Animator[0]));
animatorSet.setInterpolator(a);
stateListAnimator.addState(d, animatorSet);
stateListAnimator.addState(e, JC_(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED));
this.H = stateListAnimator;
this.E.setStateListAnimator(this.H);
}
if (this.u.e() || !k()) {
o();
}
}
private Animator JC_(float f, float f2) {
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.play(ObjectAnimator.ofFloat(this.E, "elevation", f).setDuration(0L)).with(ObjectAnimator.ofFloat(this.E, (Property<FloatingActionButton, Float>) View.TRANSLATION_Z, f2).setDuration(100L));
animatorSet.setInterpolator(a);
return animatorSet;
}
@Override // o.DuC
public final float d() {
return this.E.getElevation();
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.DuC
public final void j() {
o();
}
@Override // o.DuC
final boolean g() {
return this.u.e() || !k();
}
@Override // o.DuC
final C4363bXv a() {
return new Sts(this.D);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.DuC
public final void JD_(Rect rect) {
if (this.u.e()) {
super.JD_(rect);
return;
}
if (!k()) {
int i = this.p;
FloatingActionButton floatingActionButton = this.E;
int a = (i - floatingActionButton.a(floatingActionButton.j)) / 2;
rect.set(a, a, a, a);
return;
}
rect.set(0, 0, 0, 0);
}
/* loaded from: classes2.dex */
static class Sts extends C4363bXv {
@Override // o.C4363bXv, android.graphics.drawable.Drawable
public final boolean isStateful() {
return true;
}
Sts(FLD fld) {
super(fld);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.DuC
public final void JE_(ColorStateList colorStateList, PorterDuff.Mode mode, ColorStateList colorStateList2, int i) {
Drawable drawable;
this.z = new Sts(this.D);
this.z.setTintList(colorStateList);
if (mode != null) {
this.z.setTintMode(mode);
}
this.z.d(this.E.getContext());
if (i <= 0) {
this.f = null;
drawable = this.z;
} else {
Context context = this.E.getContext();
Gmh gmh = new Gmh(this.D);
int color = nMh.getColor(context, C17052tZT.Sts.design_fab_stroke_top_outer_color);
int color2 = nMh.getColor(context, C17052tZT.Sts.design_fab_stroke_top_inner_color);
int color3 = nMh.getColor(context, C17052tZT.Sts.design_fab_stroke_end_inner_color);
int color4 = nMh.getColor(context, C17052tZT.Sts.design_fab_stroke_end_outer_color);
gmh.g = color;
gmh.f = color2;
gmh.b = color3;
gmh.a = color4;
float f = i;
if (gmh.e != f) {
gmh.e = f;
gmh.c.setStrokeWidth(f * 1.3333f);
gmh.d = true;
gmh.invalidateSelf();
}
gmh.Jb_(colorStateList);
this.f = gmh;
drawable = new LayerDrawable(new Drawable[]{this.f, this.z});
}
this.y = new RippleDrawable(C0459HUs.KI_(colorStateList2), drawable, null);
this.g = this.y;
}
}