156 lines
4.2 KiB
Java
156 lines
4.2 KiB
Java
package o;
|
|
|
|
import androidx.core.view.ViewCompat;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class oqg extends IgN {
|
|
private Smu a;
|
|
private yjv b;
|
|
private gVL c;
|
|
private AbstractC16943sbc d;
|
|
private boolean e;
|
|
|
|
protected abstract void d();
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public oqg() {
|
|
d();
|
|
if (this.c == null || this.a == null || this.d == null || this.b == null) {
|
|
throw new IllegalStateException("setup incomplete");
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.jbe
|
|
public void runPendingAnimations() {
|
|
if ((!this.c.a.isEmpty()) || (!this.b.a.isEmpty()) || (!this.d.a.isEmpty()) || (!this.a.a.isEmpty())) {
|
|
a();
|
|
}
|
|
}
|
|
|
|
@Override // o.AbstractC17051tZJ
|
|
public boolean animateRemove(RecyclerView.zJl zjl) {
|
|
return this.c.e(zjl);
|
|
}
|
|
|
|
@Override // o.AbstractC17051tZJ
|
|
public boolean animateAdd(RecyclerView.zJl zjl) {
|
|
return this.a.c(zjl);
|
|
}
|
|
|
|
@Override // o.AbstractC17051tZJ
|
|
public boolean animateMove(RecyclerView.zJl zjl, int i, int i2, int i3, int i4) {
|
|
return this.b.a(zjl, i, i2, i3, i4);
|
|
}
|
|
|
|
@Override // o.AbstractC17051tZJ
|
|
public boolean animateChange(RecyclerView.zJl zjl, RecyclerView.zJl zjl2, int i, int i2, int i3, int i4) {
|
|
if (zjl == zjl2) {
|
|
return this.b.a(zjl, i, i2, i3, i4);
|
|
}
|
|
return this.d.b(zjl, zjl2, i, i2, i3, i4);
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.jbe
|
|
public boolean isRunning() {
|
|
return this.c.g() || this.a.g() || this.d.g() || this.b.g();
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.jbe
|
|
public void endAnimations() {
|
|
this.b.d();
|
|
this.c.d();
|
|
this.a.d();
|
|
this.d.d();
|
|
if (isRunning()) {
|
|
this.b.a();
|
|
this.a.a();
|
|
this.d.a();
|
|
this.c.e();
|
|
this.b.e();
|
|
this.a.e();
|
|
this.d.e();
|
|
dispatchAnimationsFinished();
|
|
}
|
|
}
|
|
|
|
@Override // o.IgN
|
|
public final boolean c() {
|
|
return super.c();
|
|
}
|
|
|
|
protected void a() {
|
|
e();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final void e() {
|
|
boolean z = true;
|
|
boolean z2 = !this.c.a.isEmpty();
|
|
boolean z3 = !this.b.a.isEmpty();
|
|
boolean z4 = !this.d.a.isEmpty();
|
|
boolean z5 = !this.a.a.isEmpty();
|
|
long removeDuration = z2 ? getRemoveDuration() : 0L;
|
|
long moveDuration = z3 ? getMoveDuration() : 0L;
|
|
long changeDuration = z4 ? getChangeDuration() : 0L;
|
|
if (z2) {
|
|
this.c.c(false, 0L);
|
|
}
|
|
if (z3) {
|
|
this.b.c(z2, removeDuration);
|
|
}
|
|
if (z4) {
|
|
this.d.c(z2, removeDuration);
|
|
}
|
|
if (z5) {
|
|
if (!z2 && !z3 && !z4) {
|
|
z = false;
|
|
}
|
|
this.a.c(z, z ? removeDuration + Math.max(moveDuration, changeDuration) : 0L);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.jbe
|
|
public void endAnimation(RecyclerView.zJl zjl) {
|
|
ViewCompat.b(zjl.itemView).d();
|
|
this.b.a(zjl);
|
|
this.d.a(zjl);
|
|
this.c.a(zjl);
|
|
this.a.a(zjl);
|
|
this.b.b(zjl);
|
|
this.d.b(zjl);
|
|
this.c.b(zjl);
|
|
this.a.b(zjl);
|
|
this.c.d(zjl);
|
|
this.a.d(zjl);
|
|
this.d.d(zjl);
|
|
this.b.d(zjl);
|
|
super.c();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final void d(gVL gvl) {
|
|
this.c = gvl;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final void a(yjv yjvVar) {
|
|
this.b = yjvVar;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final void b(AbstractC16943sbc abstractC16943sbc) {
|
|
this.d = abstractC16943sbc;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final void b(Smu smu) {
|
|
this.a = smu;
|
|
}
|
|
|
|
@Override // o.IgN
|
|
public final boolean b() {
|
|
return this.e;
|
|
}
|
|
}
|