package com.scb.phone.view.fragment.transferandpay; import android.content.Context; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.OnClick; import com.scb.phone.R; import com.scb.phone.view.adapter.fixedtransfer.DepositDetailRecyclerViewAdapter; import com.scb.phone.view.custom.common.DefaultButton; import com.scb.phone.view.custom.transferandpay.CustomNoteItem; import com.scb.phone.view.custom.transferandpay.CustomPhotoLeftDetails; import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem; import o.C1168Xb; import o.C1189Xo; import o.WO; import o.fJM; /* loaded from: classes5.dex */ public class ReviewFragment extends Hilt_ReviewFragment { public LWm c; private DepositDetailRecyclerViewAdapter d; @BindView RelativeLayout layoutDepositDetail; @BindView LinearLayout layoutFixedTransferDepositList; @BindView public DefaultButton mConfirmButton; @BindView ImageView mImageIconExpandMore; @BindView CustomNoteItem messageDetails; @BindView CustomPhotoLeftDetails movieDetails; @BindView TextView nextDayReminder; @BindView RecyclerView recyclerView; @BindView TextView tvWarningMessage; @BindView TextView tvWarningMessageHeader; @BindView LinearLayout warningMessageLayout; @FunctionalInterface /* loaded from: classes5.dex */ public interface LWm { void a(C1189Xo c1189Xo); } public static ReviewFragment b(C1189Xo c1189Xo) { Bundle bundle = new Bundle(); bundle.putParcelable("com.scb.phone.EXTRA_REVIEW", c1189Xo); ReviewFragment reviewFragment = new ReviewFragment(); reviewFragment.setArguments(bundle); return reviewFragment; } /* JADX WARN: Removed duplicated region for block: B:14:0x0066 A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:19:0x00c1 */ @Override // androidx.fragment.app.Fragment /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public android.view.View onCreateView(android.view.LayoutInflater r5, android.view.ViewGroup r6, android.os.Bundle r7) { /* Method dump skipped, instructions count: 249 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.transferandpay.ReviewFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle):android.view.View"); } /* JADX INFO: Access modifiers changed from: protected */ @Override // com.scb.phone.view.fragment.transferandpay.BaseReviewFragment public final void a(C1189Xo c1189Xo, View view, Context context) { String str; super.a(c1189Xo, view, context); if (c1189Xo.C == null) { if ("LOANPAYMENT".equals(this.g.j())) { this.customFees.setVisibility(8); this.customAmount.setText(getContext().getString(R.string.total_amount)); this.customAmount.mBottomSpace.setVisibility(this.g.j == null ? 0 : 8); CustomTransferAndPayItem customTransferAndPayItem = this.customAmount; C1168Xb c1168Xb = this.g.j; customTransferAndPayItem.amountInfo.setVisibility(0); customTransferAndPayItem.amountInfo.setValuesAligned(c1168Xb, false); if (TextUtils.isEmpty(this.g.ao)) { this.nextDayReminder.setVisibility(8); return; } else { this.nextDayReminder.setText(this.g.ao); this.nextDayReminder.setVisibility(0); return; } } if (!"PURCHASE_TRANSFER_FUNCTION".equals(this.g.j()) && !"PURCHASE_TOPUP_FUNCTION".equals(this.g.j()) && !"PURCHASE_BILL_PAYMENT_FUNCTION".equals(this.g.j()) && !"PURCHASE_CREDIT_CARD_FUNCTION".equals(this.g.j())) { if ("FIXED_TRANSFER".equals(c1189Xo.j())) { if (c1189Xo.aA != null && !c1189Xo.aA.isEmpty()) { this.layoutFixedTransferDepositList.setVisibility(0); return; } else { this.layoutFixedTransferDepositList.setVisibility(8); return; } } return; } this.customAmount.amountInfo.setVisibility(8); this.customAmount.mBottomSpace.setVisibility(0); if (this.g.q != null) { this.customTarget.setShopAvatar(this.g.q.toString()); return; } return; } this.customFees.mDividerView.setVisibility(0); this.userNote.divider.setVisibility(0); this.fullDivider.setVisibility(8); WO wo = c1189Xo.C; this.movieDetails.setVisibility(0); this.movieDetails.setHeader(wo.m); CustomPhotoLeftDetails customPhotoLeftDetails = this.movieDetails; if (wo.a != null) { str = wo.a; } else { str = wo.d; } customPhotoLeftDetails.setImageView(str); if (!TextUtils.isEmpty(wo.j)) { this.movieDetails.setTitle(wo.j); if (!TextUtils.isEmpty(wo.c)) { this.movieDetails.setSecondText(wo.c); } } else if (!TextUtils.isEmpty(wo.c)) { this.movieDetails.setTitle(wo.c); } if (!TextUtils.isEmpty(wo.h)) { this.movieDetails.setThirdText(wo.h); } if (!TextUtils.isEmpty(wo.f)) { this.movieDetails.setFourth(wo.f); } if (wo.b == null || wo.b.isEmpty()) { CustomPhotoLeftDetails customPhotoLeftDetails2 = this.movieDetails; customPhotoLeftDetails2.dividirView.setVisibility(8); customPhotoLeftDetails2.dividirFullView.setVisibility(8); return; } CustomPhotoLeftDetails customPhotoLeftDetails3 = this.movieDetails; customPhotoLeftDetails3.dividirView.setVisibility(0); customPhotoLeftDetails3.dividirFullView.setVisibility(8); this.messageDetails.setVisibility(0); this.messageDetails.setTitle(wo.i); this.messageDetails.setText(wo.b); this.messageDetails.divider.setVisibility(8); } /* JADX INFO: Access modifiers changed from: package-private */ @OnClick public void onDepositListClicked() { if (this.d == null) { RecyclerView recyclerView = this.recyclerView; getContext(); recyclerView.setLayoutManager(new LinearLayoutManager(1, false)); this.recyclerView.setNestedScrollingEnabled(false); DepositDetailRecyclerViewAdapter depositDetailRecyclerViewAdapter = new DepositDetailRecyclerViewAdapter(this.g.aA); this.d = depositDetailRecyclerViewAdapter; this.recyclerView.setAdapter(depositDetailRecyclerViewAdapter); } fJM.b(this.mImageIconExpandMore); if (this.recyclerView.getVisibility() == 8) { this.recyclerView.setVisibility(0); } else { this.recyclerView.setVisibility(8); } } }