what-the-bank/sources/com/scb/phone/view/activity/prepaid/DetailsTabHolder.java

102 lines
2.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.prepaid;
import android.content.Context;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import com.scb.phone.view.adapter.prepaid.PrepaidTransactionAdapter;
import java.util.List;
import java.util.Map;
import o.C1042Ui;
import o.C1062Uu;
import o.C16148leh;
import o.kIT;
/* loaded from: classes5.dex */
public class DetailsTabHolder {
public PrepaidTransactionAdapter b;
public Context c;
@BindView
LinearLayout customError;
public C16148leh d;
private final RVV e;
@BindView
RelativeLayout mEmptyCard;
@BindView
TextView mEmptyDescriptionPrepaid;
@BindView
ImageView mEmptyImagePrepaid;
@BindView
TextView mEmptyTitlePrepaid;
@BindView
View mLoadingView;
@BindView
public RecyclerView mRecyclerViewPrepaid;
@BindView
TextView mTextMessagePrepaid;
@BindView
TextView mTextTxnMonthPrepaid;
@BindView
public TextView mTextTxnPrepaid;
@BindView
public Toolbar mToolbarTxnPrepaid;
/* loaded from: classes5.dex */
public interface RVV {
void b(C1042Ui c1042Ui);
}
public static /* synthetic */ void c() {
}
public DetailsTabHolder(RVV rvv) {
this.e = rvv;
}
public final void e(List<C1062Uu> list) {
this.mLoadingView.setVisibility(8);
this.mTextMessagePrepaid.setVisibility(8);
this.customError.setVisibility(8);
this.mRecyclerViewPrepaid.setVisibility(0);
PrepaidTransactionAdapter prepaidTransactionAdapter = this.b;
prepaidTransactionAdapter.d.clear();
if (list != null) {
prepaidTransactionAdapter.d.addAll(list);
}
prepaidTransactionAdapter.notifyDataSetChanged();
this.d.e();
}
public static /* synthetic */ boolean akz_(DetailsTabHolder detailsTabHolder, Map map, MenuItem menuItem) {
detailsTabHolder.mTextTxnMonthPrepaid.setText(menuItem.getTitle());
detailsTabHolder.e.b((C1042Ui) map.get(menuItem.getTitle().toString()));
return true;
}
public static /* synthetic */ void e(DetailsTabHolder detailsTabHolder, int i) {
kIT kit;
for (int i2 = 0; i2 < detailsTabHolder.d.j.a.d(); i2++) {
if (i2 != i && (kit = detailsTabHolder.d.j) != null) {
kit.e(i2, false);
}
}
}
}