196 lines
7.5 KiB
Java
196 lines
7.5 KiB
Java
|
package com.scb.phone.view.fragment.cardmanagement;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.Intent;
|
||
|
import android.os.Build;
|
||
|
import android.os.Bundle;
|
||
|
import android.os.Parcelable;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.cardmanagement.DeejungInstallmentsConfirmationActivity;
|
||
|
import com.scb.phone.view.activity.cardmanagement.deejungtransfer.DeejungTermsAndConditionsActivity;
|
||
|
import o.AbstractC14961gcz;
|
||
|
import o.C0430Gj;
|
||
|
import o.C0432Gk;
|
||
|
import o.C12105ert;
|
||
|
import o.C14957gcv;
|
||
|
import o.C2915anc;
|
||
|
import o.InterfaceC10303eAL;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC13393fZL;
|
||
|
import o.InterfaceC14890gbN;
|
||
|
import o.InterfaceC9060dcb;
|
||
|
import o.InterfaceViewOnClickListenerC9005dbZ;
|
||
|
import o.fZZ;
|
||
|
import o.iVO;
|
||
|
import o.qeC;
|
||
|
import o.xZj;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class DeejungInstallmentsReviewFragment extends Hilt_DeejungInstallmentsReviewFragment implements InterfaceViewOnClickListenerC9005dbZ, InterfaceC10303eAL, InterfaceC9060dcb {
|
||
|
private final InterfaceC13393fZL c;
|
||
|
private C12105ert d;
|
||
|
private C0430Gj j;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C2915anc presenter;
|
||
|
|
||
|
public DeejungInstallmentsReviewFragment() {
|
||
|
RVV rvv = new RVV(this);
|
||
|
C14957gcv.e(rvv, "");
|
||
|
this.c = new fZZ(rvv);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<iVO> {
|
||
|
private DeejungInstallmentsReviewFragment c;
|
||
|
|
||
|
@Override // o.InterfaceC14890gbN
|
||
|
public final /* synthetic */ iVO invoke() {
|
||
|
View inflate = this.c.getLayoutInflater().inflate(R.layout.2131559551, (ViewGroup) null, false);
|
||
|
RecyclerView recyclerView = (RecyclerView) qeC.e(inflate, R.id.rcv_deejung_review);
|
||
|
if (recyclerView != null) {
|
||
|
return new iVO((ConstraintLayout) inflate, recyclerView);
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(R.id.rcv_deejung_review)));
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
RVV(DeejungInstallmentsReviewFragment deejungInstallmentsReviewFragment) {
|
||
|
super(0);
|
||
|
this.c = deejungInstallmentsReviewFragment;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
ConstraintLayout constraintLayout = ((iVO) this.c.e()).d;
|
||
|
C14957gcv.c(constraintLayout, "");
|
||
|
return constraintLayout;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
Parcelable parcelable;
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
C2915anc c2915anc = this.presenter;
|
||
|
C2915anc c2915anc2 = null;
|
||
|
if (c2915anc == null) {
|
||
|
C14957gcv.a("");
|
||
|
c2915anc = null;
|
||
|
}
|
||
|
c2915anc.e((C2915anc) this);
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
Intent intent = activity.getIntent();
|
||
|
C14957gcv.c(intent, "");
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
Bundle extras = intent.getExtras();
|
||
|
parcelable = extras != null ? (Parcelable) extras.getParcelable("com.scb.phone.view.activity.card_management.DeejungInstallmentsReviewActivity.KEY_DEEJUNG_INSTALLMENTS_REVIEW_DISPLAY_MODEL", C0430Gj.class) : null;
|
||
|
} else {
|
||
|
Bundle extras2 = intent.getExtras();
|
||
|
Parcelable parcelable2 = extras2 != null ? extras2.getParcelable("com.scb.phone.view.activity.card_management.DeejungInstallmentsReviewActivity.KEY_DEEJUNG_INSTALLMENTS_REVIEW_DISPLAY_MODEL") : null;
|
||
|
if (!(parcelable2 instanceof C0430Gj)) {
|
||
|
parcelable2 = null;
|
||
|
}
|
||
|
parcelable = (C0430Gj) parcelable2;
|
||
|
}
|
||
|
C0430Gj c0430Gj = (C0430Gj) parcelable;
|
||
|
this.j = c0430Gj;
|
||
|
this.d = new C12105ert();
|
||
|
iVO ivo = (iVO) this.c.e();
|
||
|
RecyclerView recyclerView = ivo.c;
|
||
|
getContext();
|
||
|
recyclerView.setLayoutManager(new LinearLayoutManager(1, false));
|
||
|
RecyclerView recyclerView2 = ivo.c;
|
||
|
C12105ert c12105ert = this.d;
|
||
|
if (c12105ert == null) {
|
||
|
C14957gcv.a("");
|
||
|
c12105ert = null;
|
||
|
}
|
||
|
recyclerView2.setAdapter(c12105ert);
|
||
|
C12105ert c12105ert2 = this.d;
|
||
|
if (c12105ert2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c12105ert2 = null;
|
||
|
}
|
||
|
if (c0430Gj != null) {
|
||
|
c12105ert2.b = c0430Gj;
|
||
|
}
|
||
|
c12105ert2.c = this;
|
||
|
c12105ert2.e = this;
|
||
|
C2915anc c2915anc3 = this.presenter;
|
||
|
if (c2915anc3 != null) {
|
||
|
c2915anc2 = c2915anc3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
c2915anc2.e = this.j;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC10303eAL
|
||
|
public final void j() {
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
DeejungTermsAndConditionsActivity.RVV rvv = DeejungTermsAndConditionsActivity.b;
|
||
|
C0430Gj c0430Gj = this.j;
|
||
|
String str = c0430Gj != null ? c0430Gj.m : null;
|
||
|
C14957gcv.e(context, "");
|
||
|
Intent intent = new Intent(context, (Class<?>) DeejungTermsAndConditionsActivity.class);
|
||
|
intent.putExtra("EXTRA_DEEJUNG_TERMS_AND_CONDITIONS_URL", str);
|
||
|
startActivity(intent);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
C2915anc c2915anc = this.presenter;
|
||
|
if (c2915anc == null) {
|
||
|
C14957gcv.a("");
|
||
|
c2915anc = null;
|
||
|
}
|
||
|
if (c2915anc.f != 0) {
|
||
|
c2915anc.f.y();
|
||
|
}
|
||
|
xZj xzj = c2915anc.d;
|
||
|
C0430Gj c0430Gj = c2915anc.e;
|
||
|
String str = c0430Gj != null ? c0430Gj.r : null;
|
||
|
xzj.c(str != null ? str : "");
|
||
|
xZj xzj2 = c2915anc.d;
|
||
|
xzj2.d(xzj2.i, new C2915anc.IeS(c2915anc));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9060dcb
|
||
|
public final void e(C0432Gk c0432Gk) {
|
||
|
DeejungInstallmentsConfirmationActivity.LWm lWm = DeejungInstallmentsConfirmationActivity.b;
|
||
|
Intent intent = new Intent(getContext(), (Class<?>) DeejungInstallmentsConfirmationActivity.class);
|
||
|
intent.putExtra("com.scb.phone.view.activity.card_management.DeejungInstallmentsConfirmationActivity.KEY_DEEJUNG_INSTALLMENTS_CONFIRMATION_DISPLAY_MODEL", c0432Gk);
|
||
|
intent.putExtra("IS_SUCCESS", true);
|
||
|
startActivity(intent);
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
activity.finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroy() {
|
||
|
C2915anc c2915anc = this.presenter;
|
||
|
if (c2915anc == null) {
|
||
|
C14957gcv.a("");
|
||
|
c2915anc = null;
|
||
|
}
|
||
|
c2915anc.w_();
|
||
|
super.onDestroy();
|
||
|
}
|
||
|
}
|