package o; import android.view.View; import androidx.recyclerview.widget.RecyclerView; /* renamed from: o.tZJ, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public abstract class AbstractC17051tZJ extends RecyclerView.jbe { private static final boolean DEBUG = false; private static final String TAG = "SimpleItemAnimator"; boolean mSupportsChangeAnimations = true; public abstract boolean animateAdd(RecyclerView.zJl zjl); public abstract boolean animateChange(RecyclerView.zJl zjl, RecyclerView.zJl zjl2, int i, int i2, int i3, int i4); public abstract boolean animateMove(RecyclerView.zJl zjl, int i, int i2, int i3, int i4); public abstract boolean animateRemove(RecyclerView.zJl zjl); public void onAddFinished(RecyclerView.zJl zjl) { } public void onAddStarting(RecyclerView.zJl zjl) { } public void onChangeFinished(RecyclerView.zJl zjl, boolean z) { } public void onChangeStarting(RecyclerView.zJl zjl, boolean z) { } public void onMoveFinished(RecyclerView.zJl zjl) { } public void onMoveStarting(RecyclerView.zJl zjl) { } public void onRemoveFinished(RecyclerView.zJl zjl) { } public void onRemoveStarting(RecyclerView.zJl zjl) { } @Override // androidx.recyclerview.widget.RecyclerView.jbe public boolean canReuseUpdatedViewHolder(RecyclerView.zJl zjl) { return !this.mSupportsChangeAnimations || zjl.isInvalid(); } @Override // androidx.recyclerview.widget.RecyclerView.jbe public boolean animateDisappearance(RecyclerView.zJl zjl, RecyclerView.jbe.Sts sts, RecyclerView.jbe.Sts sts2) { int i = sts.c; int i2 = sts.d; View view = zjl.itemView; int left = sts2 == null ? view.getLeft() : sts2.c; int top = sts2 == null ? view.getTop() : sts2.d; if (!zjl.isRemoved() && (i != left || i2 != top)) { view.layout(left, top, view.getWidth() + left, view.getHeight() + top); return animateMove(zjl, i, i2, left, top); } return animateRemove(zjl); } @Override // androidx.recyclerview.widget.RecyclerView.jbe public boolean animateAppearance(RecyclerView.zJl zjl, RecyclerView.jbe.Sts sts, RecyclerView.jbe.Sts sts2) { if (sts != null && (sts.c != sts2.c || sts.d != sts2.d)) { return animateMove(zjl, sts.c, sts.d, sts2.c, sts2.d); } return animateAdd(zjl); } @Override // androidx.recyclerview.widget.RecyclerView.jbe public boolean animatePersistence(RecyclerView.zJl zjl, RecyclerView.jbe.Sts sts, RecyclerView.jbe.Sts sts2) { if (sts.c != sts2.c || sts.d != sts2.d) { return animateMove(zjl, sts.c, sts.d, sts2.c, sts2.d); } dispatchMoveFinished(zjl); return false; } @Override // androidx.recyclerview.widget.RecyclerView.jbe public boolean animateChange(RecyclerView.zJl zjl, RecyclerView.zJl zjl2, RecyclerView.jbe.Sts sts, RecyclerView.jbe.Sts sts2) { int i; int i2; int i3 = sts.c; int i4 = sts.d; if (zjl2.shouldIgnore()) { int i5 = sts.c; i2 = sts.d; i = i5; } else { i = sts2.c; i2 = sts2.d; } return animateChange(zjl, zjl2, i3, i4, i, i2); } public final void dispatchRemoveFinished(RecyclerView.zJl zjl) { onRemoveFinished(zjl); dispatchAnimationFinished(zjl); } public final void dispatchMoveFinished(RecyclerView.zJl zjl) { onMoveFinished(zjl); dispatchAnimationFinished(zjl); } public final void dispatchAddFinished(RecyclerView.zJl zjl) { onAddFinished(zjl); dispatchAnimationFinished(zjl); } public final void dispatchChangeFinished(RecyclerView.zJl zjl, boolean z) { onChangeFinished(zjl, z); dispatchAnimationFinished(zjl); } public final void dispatchRemoveStarting(RecyclerView.zJl zjl) { onRemoveStarting(zjl); } public final void dispatchMoveStarting(RecyclerView.zJl zjl) { onMoveStarting(zjl); } public final void dispatchAddStarting(RecyclerView.zJl zjl) { onAddStarting(zjl); } public final void dispatchChangeStarting(RecyclerView.zJl zjl, boolean z) { onChangeStarting(zjl, z); } public void setSupportsChangeAnimations(boolean z) { this.mSupportsChangeAnimations = z; } public boolean getSupportsChangeAnimations() { return this.mSupportsChangeAnimations; } }