what-the-bank/sources/com/scb/phone/view/fragment/registration/onboarding/RegistrationFingerprintFrag...

317 lines
12 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.registration.onboarding;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.fragment.registration.onboarding.RegistrationFingerprintFragment;
import dagger.Lazy;
import o.C12914fKz;
import o.C16565pPd;
import o.C5841cAx;
import o.C5842cAy;
import o.C5843cAz;
import o.DialogInterfaceC17187ufv;
import o.InterfaceC13391fZD;
import o.InterfaceC8982dbC;
import o.InterfaceC9031dbz;
import o.InterfaceC9603dmp;
import o.ZI;
import o.cAB;
import o.fJA;
/* loaded from: classes5.dex */
public class RegistrationFingerprintFragment extends Hilt_RegistrationFingerprintFragment implements InterfaceC9603dmp {
@InterfaceC13391fZD
public Lazy<InterfaceC9031dbz> biometricManagerLazy;
private InterfaceC9031dbz d;
private fJA f;
@BindView
Button leftButton;
@InterfaceC13391fZD
public C5841cAx presenter;
@BindView
Button rightButton;
private C16565pPd i = new C16565pPd();
public Dialog c = null;
public static RegistrationFingerprintFragment j() {
Bundle bundle = new Bundle();
RegistrationFingerprintFragment registrationFingerprintFragment = new RegistrationFingerprintFragment();
registrationFingerprintFragment.setArguments(bundle);
return registrationFingerprintFragment;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.scb.phone.view.fragment.registration.onboarding.Hilt_RegistrationFingerprintFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof fJA) {
this.f = (fJA) context;
}
}
@Override // androidx.fragment.app.Fragment
public void onResume() {
super.onResume();
C5841cAx c5841cAx = this.presenter;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cAC
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9603dmp) obj).e();
}
};
if (c5841cAx.f != 0) {
ieS.e(c5841cAx.f);
}
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559861, viewGroup, false);
ButterKnife.c(this, inflate);
this.presenter.e((C5841cAx) this);
this.rightButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.fwQ
private RegistrationFingerprintFragment b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
RegistrationFingerprintFragment.a(this.b);
}
{
this.b = this;
}
});
this.leftButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.fwU
private RegistrationFingerprintFragment c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
RegistrationFingerprintFragment.d(this.c);
}
{
this.c = this;
}
});
C16565pPd c16565pPd = this.i;
if (getActivity() != null) {
c16565pPd.c(((BaseActivity) getActivity()).scbAnalytics, "registration_set_fingerprint");
}
return inflate;
}
@Override // o.InterfaceC9603dmp
public final void d() {
Dialog dialog = this.c;
if (dialog != null) {
dialog.dismiss();
this.c = null;
}
if (getActivity() != null) {
C12914fKz.e(new Object[]{getActivity(), Integer.valueOf(R.id.root), Integer.valueOf(R.drawable.ic_check_circle_white_24dp), getString(R.string.fingerprint_setting_error), Integer.valueOf(R.color.f2852131099792)}, 1259223802, -1259223796, R.id.root);
}
}
@Override // o.InterfaceC9603dmp
public final void c() {
Dialog dialog = this.c;
if (dialog != null) {
dialog.dismiss();
this.c = null;
}
}
@Override // o.InterfaceC9603dmp
public final void g() {
InterfaceC9031dbz interfaceC9031dbz = this.biometricManagerLazy.get();
this.d = interfaceC9031dbz;
if (interfaceC9031dbz.e()) {
this.d.d(new InterfaceC8982dbC(this) { // from class: com.scb.phone.view.fragment.registration.onboarding.RegistrationFingerprintFragment.5
private RegistrationFingerprintFragment e;
@Override // o.InterfaceC8982dbC
public final void e() {
}
{
this.e = this;
}
@Override // o.InterfaceC8982dbC
public final void j() {
if (this.e.getContext() != null) {
C5841cAx c5841cAx = this.e.presenter;
c5841cAx.d.b.a(true);
ZI.IeS ieS = new ZI.IeS() { // from class: o.cAA
@Override // o.ZI.IeS
public final void e(Object obj) {
C5841cAx.d((InterfaceC9603dmp) obj);
}
};
if (c5841cAx.f != 0) {
ieS.e(c5841cAx.f);
}
cAB cab = new cAB();
if (c5841cAx.f != 0) {
cab.e(c5841cAx.f);
}
}
}
@Override // o.InterfaceC8982dbC
public final void d() {
C5841cAx c5841cAx = this.e.presenter;
C5843cAz c5843cAz = new C5843cAz();
if (c5841cAx.f != 0) {
c5843cAz.e(c5841cAx.f);
}
}
@Override // o.InterfaceC8982dbC
public final void a() {
C5841cAx c5841cAx = this.e.presenter;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cAG
@Override // o.ZI.IeS
public final void e(Object obj) {
C5841cAx.a((InterfaceC9603dmp) obj);
}
};
if (c5841cAx.f != 0) {
ieS.e(c5841cAx.f);
}
}
@Override // o.InterfaceC8982dbC
public final void c() {
this.e.d.b();
C5841cAx c5841cAx = this.e.presenter;
C5843cAz c5843cAz = new C5843cAz();
if (c5841cAx.f != 0) {
c5843cAz.e(c5841cAx.f);
}
}
@Override // o.InterfaceC8982dbC
public final void b() {
final RegistrationFingerprintFragment registrationFingerprintFragment = this.e;
final Runnable runnable = new Runnable(registrationFingerprintFragment) { // from class: o.fwP
private RegistrationFingerprintFragment d;
@Override // java.lang.Runnable
public final void run() {
RegistrationFingerprintFragment registrationFingerprintFragment2 = this.d;
Dialog dialog = registrationFingerprintFragment2.c;
if (dialog != null) {
dialog.dismiss();
registrationFingerprintFragment2.c = null;
}
}
{
this.d = registrationFingerprintFragment;
}
};
StringBuilder sb = new StringBuilder();
sb.append(registrationFingerprintFragment.getString(R.string.fingerprint_dialog_title));
sb.append(" \"");
sb.append(registrationFingerprintFragment.getString(R.string.app_name));
sb.append("\"");
String obj = sb.toString();
Dialog dialog = registrationFingerprintFragment.c;
if (dialog != null) {
dialog.dismiss();
registrationFingerprintFragment.c = null;
}
if (registrationFingerprintFragment.getActivity() != null) {
View inflate = registrationFingerprintFragment.getLayoutInflater().inflate(R.layout.2131559411, (ViewGroup) null);
((TextView) inflate.findViewById(R.id.tv_fp_title)).setText(obj);
((Button) inflate.findViewById(R.id.btn_fp_cancel)).setOnClickListener(new View.OnClickListener(runnable) { // from class: o.fwT
private Runnable c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.c.run();
}
{
this.c = runnable;
}
});
DialogInterfaceC17187ufv.HBt hBt = new DialogInterfaceC17187ufv.HBt(registrationFingerprintFragment.getActivity());
hBt.b.c = true;
hBt.b.B = inflate;
hBt.b.A = 0;
hBt.b.G = false;
DialogInterfaceC17187ufv b = hBt.b();
registrationFingerprintFragment.c = b;
b.show();
}
}
});
}
}
@Override // o.InterfaceC9603dmp
public final void b() {
InterfaceC9031dbz interfaceC9031dbz = this.d;
if (interfaceC9031dbz != null) {
interfaceC9031dbz.a();
}
}
@Override // o.InterfaceC9603dmp
public final void a() {
fJA fja = this.f;
if (fja != null) {
fja.e("RegistrationFingerprintFragment");
}
}
@Override // o.InterfaceC9603dmp
public final void e() {
Dialog dialog = this.c;
if (dialog == null || dialog.isShowing()) {
return;
}
C5841cAx c5841cAx = this.presenter;
C5842cAy c5842cAy = new C5842cAy();
if (c5841cAx.f != 0) {
c5842cAy.e(c5841cAx.f);
}
}
public static /* synthetic */ void d(RegistrationFingerprintFragment registrationFingerprintFragment) {
C5841cAx c5841cAx = registrationFingerprintFragment.presenter;
cAB cab = new cAB();
if (c5841cAx.f != 0) {
cab.e(c5841cAx.f);
}
}
public static /* synthetic */ void a(RegistrationFingerprintFragment registrationFingerprintFragment) {
C16565pPd c16565pPd = registrationFingerprintFragment.i;
if (registrationFingerprintFragment.getActivity() != null) {
c16565pPd.c(((BaseActivity) registrationFingerprintFragment.getActivity()).scbAnalytics, "registration_fingerprint");
}
C5841cAx c5841cAx = registrationFingerprintFragment.presenter;
C5842cAy c5842cAy = new C5842cAy();
if (c5841cAx.f != 0) {
c5842cAy.e(c5841cAx.f);
}
}
}