package o; import android.content.Context; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.view.View; import android.view.ViewGroup; import androidx.recyclerview.widget.RecyclerView; /* renamed from: o.eCj, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C10383eCj extends RecyclerView.ZqN { private Drawable b; @Override // androidx.recyclerview.widget.RecyclerView.ZqN public final void apG_(Rect rect, View view, RecyclerView recyclerView, RecyclerView.AcL acL) { super.apG_(rect, view, recyclerView, acL); int d = RecyclerView.d(view); if (d == -1 || d == 0) { return; } Context context = view.getContext(); if (this.b == null) { this.b = kVs.nZ_(context.getResources(), com.scb.phone.R.drawable.divider_line, null); } rect.top = this.b.getIntrinsicHeight(); } @Override // androidx.recyclerview.widget.RecyclerView.ZqN public final void apA_(Canvas canvas, RecyclerView recyclerView) { canvas.save(); Context context = recyclerView.getContext(); if (this.b == null) { this.b = kVs.nZ_(context.getResources(), com.scb.phone.R.drawable.divider_line, null); } Drawable drawable = this.b; int dimensionPixelSize = recyclerView.getContext().getResources().getDimensionPixelSize(com.scb.phone.R.dimen.f16672131165433); int width = recyclerView.getWidth(); int childCount = recyclerView.getChildCount(); for (int i = 0; i < childCount - 1; i++) { View childAt = recyclerView.getChildAt(i); int bottom = childAt.getBottom() + ((ViewGroup.MarginLayoutParams) ((RecyclerView.saX) childAt.getLayoutParams())).bottomMargin; drawable.setBounds(dimensionPixelSize, bottom, width, drawable.getIntrinsicHeight() + bottom); drawable.draw(canvas); } canvas.restore(); } }