package o; import android.view.View; import androidx.core.view.ViewCompat; import androidx.core.view.ViewPropertyAnimatorCompat; import androidx.recyclerview.widget.RecyclerView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.util.List; /* renamed from: o.dZm, reason: case insensitive filesystem */ /* loaded from: classes2.dex */ public class C8912dZm extends oqg { /* JADX INFO: Access modifiers changed from: protected */ @Override // o.oqg public void d() { b(new HBt(this)); d(new LWm(this)); b(new Sts(this)); a(new RVV(this)); } @Override // o.oqg protected final void a() { e(); } @Override // androidx.recyclerview.widget.RecyclerView.jbe public boolean canReuseUpdatedViewHolder(RecyclerView.zJl zjl, List list) { return !list.isEmpty() || super.canReuseUpdatedViewHolder(zjl, list); } /* renamed from: o.dZm$HBt */ /* loaded from: classes2.dex */ protected static class HBt extends Smu { @Override // o.xZG public final /* synthetic */ void a(ysw yswVar) { ysw yswVar2 = yswVar; ViewPropertyAnimatorCompat b = ViewCompat.b(yswVar2.e.itemView); b.b(1.0f); b.b(f()); e(yswVar2, yswVar2.e, b); } @Override // o.xZG public final /* synthetic */ void a(ysw yswVar, RecyclerView.zJl zjl) { zjl.itemView.setAlpha(1.0f); } @Override // o.xZG public final /* bridge */ /* synthetic */ void b(ysw yswVar, RecyclerView.zJl zjl) { } @Override // o.xZG public final /* synthetic */ void d(ysw yswVar, RecyclerView.zJl zjl) { zjl.itemView.setAlpha(1.0f); } public HBt(IgN igN) { super(igN); } @Override // o.Smu public final boolean c(RecyclerView.zJl zjl) { h(zjl); zjl.itemView.setAlpha(BitmapDescriptorFactory.HUE_RED); this.a.add(new ysw(zjl)); return true; } } /* renamed from: o.dZm$LWm */ /* loaded from: classes2.dex */ protected static class LWm extends gVL { @Override // o.xZG public final /* synthetic */ void a(HYi hYi) { HYi hYi2 = hYi; ViewPropertyAnimatorCompat b = ViewCompat.b(hYi2.d.itemView); b.b(j()); b.b(BitmapDescriptorFactory.HUE_RED); e(hYi2, hYi2.d, b); } @Override // o.xZG public final /* bridge */ /* synthetic */ void a(HYi hYi, RecyclerView.zJl zjl) { } @Override // o.xZG public final /* synthetic */ void b(HYi hYi, RecyclerView.zJl zjl) { zjl.itemView.setAlpha(1.0f); } @Override // o.xZG public final /* synthetic */ void d(HYi hYi, RecyclerView.zJl zjl) { zjl.itemView.setAlpha(1.0f); } public LWm(IgN igN) { super(igN); } @Override // o.gVL public final boolean e(RecyclerView.zJl zjl) { h(zjl); this.a.add(new HYi(zjl)); return true; } } /* renamed from: o.dZm$Sts */ /* loaded from: classes2.dex */ protected static class Sts extends AbstractC16943sbc { @Override // o.xZG public final /* bridge */ /* synthetic */ void a(hbF hbf, RecyclerView.zJl zjl) { } @Override // o.xZG public final /* synthetic */ void b(hbF hbf, RecyclerView.zJl zjl) { View view = zjl.itemView; view.setAlpha(1.0f); view.setTranslationX(BitmapDescriptorFactory.HUE_RED); view.setTranslationY(BitmapDescriptorFactory.HUE_RED); } @Override // o.xZG public final /* synthetic */ void d(hbF hbf, RecyclerView.zJl zjl) { View view = zjl.itemView; view.setAlpha(1.0f); view.setTranslationX(BitmapDescriptorFactory.HUE_RED); view.setTranslationY(BitmapDescriptorFactory.HUE_RED); } public Sts(IgN igN) { super(igN); } @Override // o.AbstractC16943sbc public final void a(hbF hbf) { ViewPropertyAnimatorCompat b = ViewCompat.b(hbf.a.itemView); b.b(f()); b.e(hbf.e - hbf.c); b.j(hbf.h - hbf.b); b.b(BitmapDescriptorFactory.HUE_RED); e(hbf, hbf.a, b); } @Override // o.AbstractC16943sbc public final void e(hbF hbf) { ViewPropertyAnimatorCompat b = ViewCompat.b(hbf.d.itemView); b.e(BitmapDescriptorFactory.HUE_RED); b.j(BitmapDescriptorFactory.HUE_RED); b.b(f()); b.b(1.0f); e(hbf, hbf.d, b); } @Override // o.AbstractC16943sbc public final boolean b(RecyclerView.zJl zjl, RecyclerView.zJl zjl2, int i, int i2, int i3, int i4) { float translationX = zjl.itemView.getTranslationX(); float translationY = zjl.itemView.getTranslationY(); float alpha = zjl.itemView.getAlpha(); h(zjl); int i5 = (int) ((i3 - i) - translationX); int i6 = (int) ((i4 - i2) - translationY); zjl.itemView.setTranslationX(translationX); zjl.itemView.setTranslationY(translationY); zjl.itemView.setAlpha(alpha); if (zjl2 != null) { h(zjl2); zjl2.itemView.setTranslationX(-i5); zjl2.itemView.setTranslationY(-i6); zjl2.itemView.setAlpha(BitmapDescriptorFactory.HUE_RED); } this.a.add(new hbF(zjl, zjl2, i, i2, i3, i4)); return true; } } /* renamed from: o.dZm$RVV */ /* loaded from: classes2.dex */ protected static class RVV extends yjv { @Override // o.xZG public final /* synthetic */ void a(C17138uHQ c17138uHQ) { C17138uHQ c17138uHQ2 = c17138uHQ; View view = c17138uHQ2.c.itemView; int i = c17138uHQ2.b; int i2 = c17138uHQ2.d; int i3 = c17138uHQ2.a; int i4 = c17138uHQ2.e; if (i - i2 != 0) { ViewCompat.b(view).e(BitmapDescriptorFactory.HUE_RED); } if (i3 - i4 != 0) { ViewCompat.b(view).j(BitmapDescriptorFactory.HUE_RED); } ViewPropertyAnimatorCompat b = ViewCompat.b(view); b.b(h()); e(c17138uHQ2, c17138uHQ2.c, b); } @Override // o.xZG public final /* synthetic */ void a(C17138uHQ c17138uHQ, RecyclerView.zJl zjl) { C17138uHQ c17138uHQ2 = c17138uHQ; View view = zjl.itemView; int i = c17138uHQ2.b - c17138uHQ2.d; int i2 = c17138uHQ2.a - c17138uHQ2.e; if (i != 0) { ViewCompat.b(view).e(BitmapDescriptorFactory.HUE_RED); } if (i2 != 0) { ViewCompat.b(view).j(BitmapDescriptorFactory.HUE_RED); } if (i != 0) { view.setTranslationX(BitmapDescriptorFactory.HUE_RED); } if (i2 != 0) { view.setTranslationY(BitmapDescriptorFactory.HUE_RED); } } @Override // o.xZG public final /* bridge */ /* synthetic */ void b(C17138uHQ c17138uHQ, RecyclerView.zJl zjl) { } @Override // o.xZG public final /* synthetic */ void d(C17138uHQ c17138uHQ, RecyclerView.zJl zjl) { View view = zjl.itemView; view.setTranslationY(BitmapDescriptorFactory.HUE_RED); view.setTranslationX(BitmapDescriptorFactory.HUE_RED); } public RVV(IgN igN) { super(igN); } @Override // o.yjv public final boolean a(RecyclerView.zJl zjl, int i, int i2, int i3, int i4) { View view = zjl.itemView; int translationX = (int) (i + zjl.itemView.getTranslationX()); int translationY = (int) (i2 + zjl.itemView.getTranslationY()); h(zjl); int i5 = i3 - translationX; int i6 = i4 - translationY; C17138uHQ c17138uHQ = new C17138uHQ(zjl, translationX, translationY, i3, i4); if (i5 == 0 && i6 == 0) { c(c17138uHQ.c); if (c17138uHQ.c != c17138uHQ.c) { return false; } c17138uHQ.c = null; return false; } if (i5 != 0) { view.setTranslationX(-i5); } if (i6 != 0) { view.setTranslationY(-i6); } this.a.add(c17138uHQ); return true; } } }