what-the-bank/sources/com/scb/phone/view/fragment/accountsummary/MyInsuranceFragment.java

163 lines
5.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.accountsummary;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.ConstraintLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.HomeActivity;
import com.scb.phone.view.activity.insurance.InsurancePortfolioActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.accountsummary.MyInsuranceFragment;
import o.C13396fZU;
import o.C14957gcv;
import o.C5755byz;
import o.InterfaceC13391fZD;
import o.InterfaceC9322dhZ;
import o.SYy;
import o.ZI;
/* loaded from: classes5.dex */
public final class MyInsuranceFragment extends Hilt_MyInsuranceFragment implements InterfaceC9322dhZ.IeS {
@BindView
public ConstraintLayout csLayoutMyInsurance;
@InterfaceC13391fZD
public C5755byz presenter;
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559439, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
C5755byz c5755byz = this.presenter;
if (c5755byz == null) {
C14957gcv.a("");
c5755byz = null;
}
c5755byz.e((C5755byz) this);
return inflate;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
final C5755byz c5755byz = this.presenter;
if (c5755byz == null) {
C14957gcv.a("");
c5755byz = null;
}
ZI.IeS ieS = new ZI.IeS(c5755byz) { // from class: o.byB
private C5755byz d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5755byz.c(this.d, (InterfaceC9322dhZ.IeS) obj);
}
{
this.d = c5755byz;
}
};
if (c5755byz.f != 0) {
ieS.e(c5755byz.f);
}
}
@OnClick
public final void onClickInsurancePortfolio() {
final C5755byz c5755byz = this.presenter;
if (c5755byz == null) {
C14957gcv.a("");
c5755byz = null;
}
ZI.IeS ieS = new ZI.IeS(c5755byz) { // from class: o.byC
private C5755byz e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5755byz.a(this.e, (InterfaceC9322dhZ.IeS) obj);
}
{
this.e = c5755byz;
}
};
if (c5755byz.f != 0) {
ieS.e(c5755byz.f);
}
}
@Override // o.InterfaceC9322dhZ.IeS
public final void d() {
InsurancePortfolioActivity.RVV rvv = InsurancePortfolioActivity.k;
Context requireContext = requireContext();
C14957gcv.c(requireContext, "");
C14957gcv.e(requireContext, "");
startActivity(new Intent(requireContext, (Class<?>) InsurancePortfolioActivity.class));
}
@Override // o.InterfaceC9322dhZ.IeS
public final void e(int i) {
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(requireContext()).c(R.string.auto_save_dialog_title).d(i).aoT_(R.string.auto_save_dialog_go_settings, new DialogInterface.OnClickListener(this) { // from class: o.eGb
private MyInsuranceFragment c;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
MyInsuranceFragment.aqx_(this.c, dialogInterface);
}
{
this.c = this;
}
}), Integer.valueOf(R.string.auto_save_dialog_cancel), new DialogInterface.OnClickListener() { // from class: o.eGi
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
dialogInterface.dismiss();
}
}})).show();
}
@Override // o.InterfaceC9322dhZ.IeS
public final void a() {
ConstraintLayout constraintLayout = this.csLayoutMyInsurance;
if (constraintLayout == null) {
C14957gcv.a("");
constraintLayout = null;
}
constraintLayout.setVisibility(8);
}
@Override // o.InterfaceC9322dhZ.IeS
public final void b(C13396fZU<String, SYy> c13396fZU) {
C14957gcv.e(c13396fZU, "");
g(c13396fZU);
}
@Override // o.InterfaceC9322dhZ.IeS
public final void c() {
ConstraintLayout constraintLayout = this.csLayoutMyInsurance;
if (constraintLayout == null) {
C14957gcv.a("");
constraintLayout = null;
}
constraintLayout.setVisibility(0);
}
public static /* synthetic */ void aqx_(MyInsuranceFragment myInsuranceFragment, DialogInterface dialogInterface) {
C14957gcv.e(myInsuranceFragment, "");
myInsuranceFragment.startActivity(new Intent(myInsuranceFragment.requireContext(), (Class<?>) HomeActivity.class).putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_LAYOUT", R.id.more_options_tab).addFlags(603979776));
dialogInterface.dismiss();
}
}