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

128 lines
3.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.view.View;
import android.view.animation.Interpolator;
import androidx.core.view.ViewPropertyAnimatorCompat;
import java.util.ArrayList;
import java.util.Iterator;
/* renamed from: o.Xoc, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C1190Xoc {
InterfaceC15687hkl c;
private Interpolator d;
private boolean e;
private long a = -1;
private final PBh g = new PBh(this) { // from class: o.Xoc.5
final C1190Xoc c;
private boolean e = false;
private int d = 0;
{
this.c = this;
}
@Override // o.PBh, o.InterfaceC15687hkl
public void e(View view) {
if (this.e) {
return;
}
this.e = true;
if (this.c.c != null) {
this.c.c.e(null);
}
}
void e() {
this.d = 0;
this.e = false;
this.c.e();
}
@Override // o.PBh, o.InterfaceC15687hkl
public void d(View view) {
int i = this.d + 1;
this.d = i;
if (i == this.c.b.size()) {
if (this.c.c != null) {
this.c.c.d(null);
}
e();
}
}
};
final ArrayList<ViewPropertyAnimatorCompat> b = new ArrayList<>();
public C1190Xoc c(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat) {
if (!this.e) {
this.b.add(viewPropertyAnimatorCompat);
}
return this;
}
public C1190Xoc b(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, ViewPropertyAnimatorCompat viewPropertyAnimatorCompat2) {
this.b.add(viewPropertyAnimatorCompat);
viewPropertyAnimatorCompat2.c(viewPropertyAnimatorCompat.e());
this.b.add(viewPropertyAnimatorCompat2);
return this;
}
public void b() {
if (this.e) {
return;
}
Iterator<ViewPropertyAnimatorCompat> it = this.b.iterator();
while (it.hasNext()) {
ViewPropertyAnimatorCompat next = it.next();
long j = this.a;
if (j >= 0) {
next.b(j);
}
Interpolator interpolator = this.d;
if (interpolator != null) {
next.tp_(interpolator);
}
if (this.c != null) {
next.b(this.g);
}
next.c();
}
this.e = true;
}
public void d() {
if (this.e) {
Iterator<ViewPropertyAnimatorCompat> it = this.b.iterator();
while (it.hasNext()) {
it.next().d();
}
this.e = false;
}
}
public C1190Xoc c(InterfaceC15687hkl interfaceC15687hkl) {
if (!this.e) {
this.c = interfaceC15687hkl;
}
return this;
}
public C1190Xoc eo_(Interpolator interpolator) {
if (!this.e) {
this.d = interpolator;
}
return this;
}
public C1190Xoc e(long j) {
if (!this.e) {
this.a = j;
}
return this;
}
void e() {
this.e = false;
}
}