214 lines
7.1 KiB
Java
214 lines
7.1 KiB
Java
package com.scb.phone.view.fragment.profilemanagement.promptpay;
|
|
|
|
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.CheckBox;
|
|
import android.widget.CompoundButton;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.fragment.BaseFragment;
|
|
import com.scb.phone.view.fragment.profilemanagement.promptpay.UnlinkAccountFragment;
|
|
import o.C1086Vg;
|
|
import o.C14957gcv;
|
|
import o.fIS;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class UnlinkAccountFragment extends Hilt_UnlinkAccountFragment {
|
|
public static final IeS c = new IeS(0);
|
|
|
|
@BindView
|
|
public Button btUnlink;
|
|
|
|
@BindView
|
|
public CheckBox cbBillAlertToggle;
|
|
|
|
@BindView
|
|
public CheckBox cbPayAlertToggle;
|
|
|
|
@BindView
|
|
public ImageView ivAccountIcon;
|
|
private fIS.LWm j;
|
|
|
|
@BindView
|
|
public TextView tvAccountNumber;
|
|
|
|
@BindView
|
|
public TextView tvLinkedAccount;
|
|
|
|
@BindView
|
|
public TextView tvLinkedAccountNickname;
|
|
|
|
@BindView
|
|
public TextView tvLinkedAccountType;
|
|
public final CompoundButton.OnCheckedChangeListener i = new CompoundButton.OnCheckedChangeListener(this) { // from class: o.fvD
|
|
private UnlinkAccountFragment a;
|
|
|
|
@Override // android.widget.CompoundButton.OnCheckedChangeListener
|
|
public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
|
|
UnlinkAccountFragment.b(this.a, z);
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
};
|
|
public final CompoundButton.OnCheckedChangeListener d = new CompoundButton.OnCheckedChangeListener(this) { // from class: o.fvz
|
|
private UnlinkAccountFragment c;
|
|
|
|
@Override // android.widget.CompoundButton.OnCheckedChangeListener
|
|
public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
|
|
UnlinkAccountFragment.c(this.c, z);
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
};
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // com.scb.phone.view.fragment.profilemanagement.promptpay.Hilt_UnlinkAccountFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
|
|
public final void onAttach(Context context) {
|
|
C14957gcv.e(context, "");
|
|
super.onAttach(context);
|
|
if (context instanceof fIS.LWm) {
|
|
this.j = (fIS.LWm) context;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
C14957gcv.e(layoutInflater, "");
|
|
View inflate = layoutInflater.inflate(R.layout.2131559973, viewGroup, false);
|
|
((BaseFragment) this).a = ButterKnife.c(this, inflate);
|
|
Bundle arguments = getArguments();
|
|
Button button = null;
|
|
C1086Vg c1086Vg = arguments != null ? (C1086Vg) arguments.getParcelable("linkedAccounts") : null;
|
|
if (c1086Vg != null) {
|
|
boolean z = c1086Vg.a;
|
|
CheckBox checkBox = this.cbPayAlertToggle;
|
|
if (checkBox == null) {
|
|
C14957gcv.a("");
|
|
checkBox = null;
|
|
}
|
|
checkBox.setOnCheckedChangeListener(null);
|
|
checkBox.setChecked(z);
|
|
checkBox.setOnCheckedChangeListener(this.i);
|
|
boolean z2 = c1086Vg.c;
|
|
CheckBox checkBox2 = this.cbBillAlertToggle;
|
|
if (checkBox2 == null) {
|
|
C14957gcv.a("");
|
|
checkBox2 = null;
|
|
}
|
|
checkBox2.setOnCheckedChangeListener(null);
|
|
checkBox2.setChecked(z2);
|
|
checkBox2.setOnCheckedChangeListener(this.d);
|
|
ImageView imageView = this.ivAccountIcon;
|
|
if (imageView == null) {
|
|
C14957gcv.a("");
|
|
imageView = null;
|
|
}
|
|
imageView.setImageResource(c1086Vg.d == 0 ? R.drawable.ic_mobile : R.drawable.ic_cid);
|
|
TextView textView = this.tvAccountNumber;
|
|
if (textView == null) {
|
|
C14957gcv.a("");
|
|
textView = null;
|
|
}
|
|
textView.setText(c1086Vg.j);
|
|
TextView textView2 = this.tvLinkedAccount;
|
|
if (textView2 == null) {
|
|
C14957gcv.a("");
|
|
textView2 = null;
|
|
}
|
|
textView2.setText(c1086Vg.g);
|
|
TextView textView3 = this.tvLinkedAccountType;
|
|
if (textView3 == null) {
|
|
C14957gcv.a("");
|
|
textView3 = null;
|
|
}
|
|
textView3.setText(c1086Vg.e);
|
|
String str = c1086Vg.b;
|
|
if (str != null && str.length() != 0) {
|
|
TextView textView4 = this.tvLinkedAccountNickname;
|
|
if (textView4 == null) {
|
|
C14957gcv.a("");
|
|
textView4 = null;
|
|
}
|
|
textView4.setText(c1086Vg.b);
|
|
TextView textView5 = this.tvLinkedAccountNickname;
|
|
if (textView5 == null) {
|
|
C14957gcv.a("");
|
|
textView5 = null;
|
|
}
|
|
textView5.setVisibility(0);
|
|
} else {
|
|
TextView textView6 = this.tvLinkedAccountNickname;
|
|
if (textView6 == null) {
|
|
C14957gcv.a("");
|
|
textView6 = null;
|
|
}
|
|
textView6.setVisibility(8);
|
|
}
|
|
Button button2 = this.btUnlink;
|
|
if (button2 != null) {
|
|
button = button2;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
button.setOnClickListener(new View.OnClickListener(this) { // from class: o.fvB
|
|
private UnlinkAccountFragment b;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
UnlinkAccountFragment.d(this.b);
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
});
|
|
}
|
|
return inflate;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class IeS {
|
|
private IeS() {
|
|
}
|
|
|
|
public /* synthetic */ IeS(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void c(UnlinkAccountFragment unlinkAccountFragment, boolean z) {
|
|
C14957gcv.e(unlinkAccountFragment, "");
|
|
fIS.LWm lWm = unlinkAccountFragment.j;
|
|
if (lWm != null) {
|
|
lWm.b(z);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void d(UnlinkAccountFragment unlinkAccountFragment) {
|
|
C14957gcv.e(unlinkAccountFragment, "");
|
|
fIS.LWm lWm = unlinkAccountFragment.j;
|
|
if (lWm != null) {
|
|
lWm.f();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void b(UnlinkAccountFragment unlinkAccountFragment, boolean z) {
|
|
C14957gcv.e(unlinkAccountFragment, "");
|
|
fIS.LWm lWm = unlinkAccountFragment.j;
|
|
if (lWm != null) {
|
|
lWm.e(z);
|
|
}
|
|
}
|
|
}
|