package com.scb.phone.view.custom.common; import android.app.Dialog; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.fragment.app.DialogFragment; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.view.fragment.prelogin.quickbalance.DialogDialogQuickBalanceFragment; import o.AbstractC13482fbE; import o.C1036Ue; /* loaded from: classes5.dex */ public class CustomFragmentDialog extends DialogFragment { private int c; public static CustomFragmentDialog a(C1036Ue c1036Ue) { Bundle bundle = new Bundle(); CustomFragmentDialog customFragmentDialog = new CustomFragmentDialog(); bundle.putInt("FRAGMENT_TYPE", 3); bundle.putParcelable("com.scb.phone.EXTRA_QUICK_BALANCE_DISPLAY", c1036Ue); customFragmentDialog.setArguments(bundle); return customFragmentDialog; } @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { View inflate = layoutInflater.inflate(R.layout.2131559027, viewGroup, false); ButterKnife.c(this, inflate); this.c = getArguments().getInt("FRAGMENT_TYPE"); return inflate; } @Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment public void onActivityCreated(Bundle bundle) { super.onActivityCreated(bundle); DialogDialogQuickBalanceFragment a = this.c == 3 ? DialogDialogQuickBalanceFragment.a((C1036Ue) getArguments().getParcelable("com.scb.phone.EXTRA_QUICK_BALANCE_DISPLAY")) : null; if (a != null) { AbstractC13482fbE a2 = getChildFragmentManager().a(); a2.b(R.id.dialog_fragment_container, a, null, 1); a2.d(); } } @Override // androidx.fragment.app.DialogFragment public Dialog onCreateDialog(Bundle bundle) { setStyle(1, R.style.f52332132017482); return new Dialog(this, getActivity(), getTheme()) { // from class: com.scb.phone.view.custom.common.CustomFragmentDialog.1 private CustomFragmentDialog a; { this.a = this; } @Override // android.app.Dialog public final void onBackPressed() { if (this.a.getActivity() != null) { this.a.getActivity().onBackPressed(); } } }; } }