discord-jadx/app/src/main/java/j/h.java
2022-04-15 08:15:37 +00:00

146 lines
3.7 KiB
Java

package j;
import android.view.View;
import android.view.animation.Interpolator;
import androidx.core.view.c0;
import androidx.core.view.d0;
import androidx.core.view.e0;
import java.util.ArrayList;
import java.util.Iterator;
/* compiled from: ViewPropertyAnimatorCompatSet.java */
/* loaded from: classes.dex */
public class h {
/* renamed from: c reason: collision with root package name */
private Interpolator f14521c;
/* renamed from: d reason: collision with root package name */
d0 f14522d;
/* renamed from: e reason: collision with root package name */
private boolean f14523e;
/* renamed from: b reason: collision with root package name */
private long f14520b = -1;
/* renamed from: f reason: collision with root package name */
private final e0 f14524f = new a();
/* renamed from: a reason: collision with root package name */
final ArrayList<c0> f14519a = new ArrayList<>();
/* compiled from: ViewPropertyAnimatorCompatSet.java */
/* loaded from: classes.dex */
class a extends e0 {
/* renamed from: a reason: collision with root package name */
private boolean f14525a = false;
/* renamed from: b reason: collision with root package name */
private int f14526b = 0;
a() {
}
@Override // androidx.core.view.d0
public void b(View view) {
int i10 = this.f14526b + 1;
this.f14526b = i10;
if (i10 == h.this.f14519a.size()) {
d0 d0Var = h.this.f14522d;
if (d0Var != null) {
d0Var.b(null);
}
d();
}
}
@Override // androidx.core.view.e0, androidx.core.view.d0
public void c(View view) {
if (!this.f14525a) {
this.f14525a = true;
d0 d0Var = h.this.f14522d;
if (d0Var != null) {
d0Var.c(null);
}
}
}
void d() {
this.f14526b = 0;
this.f14525a = false;
h.this.b();
}
}
public void a() {
if (this.f14523e) {
Iterator<c0> it = this.f14519a.iterator();
while (it.hasNext()) {
it.next().b();
}
this.f14523e = false;
}
}
void b() {
this.f14523e = false;
}
public h c(c0 c0Var) {
if (!this.f14523e) {
this.f14519a.add(c0Var);
}
return this;
}
public h d(c0 c0Var, c0 c0Var2) {
this.f14519a.add(c0Var);
c0Var2.h(c0Var.c());
this.f14519a.add(c0Var2);
return this;
}
public h e(long j10) {
if (!this.f14523e) {
this.f14520b = j10;
}
return this;
}
public h f(Interpolator interpolator) {
if (!this.f14523e) {
this.f14521c = interpolator;
}
return this;
}
public h g(d0 d0Var) {
if (!this.f14523e) {
this.f14522d = d0Var;
}
return this;
}
public void h() {
if (!this.f14523e) {
Iterator<c0> it = this.f14519a.iterator();
while (it.hasNext()) {
c0 next = it.next();
long j10 = this.f14520b;
if (j10 >= 0) {
next.d(j10);
}
Interpolator interpolator = this.f14521c;
if (interpolator != null) {
next.e(interpolator);
}
if (this.f14522d != null) {
next.f(this.f14524f);
}
next.j();
}
this.f14523e = true;
}
}
}