1364 lines
44 KiB
Java
1364 lines
44 KiB
Java
|
package com.scb.phone.view.fragment.loanrepayment;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.DialogInterface;
|
||
|
import android.content.Intent;
|
||
|
import android.graphics.Bitmap;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
import android.net.Uri;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.Button;
|
||
|
import android.widget.ImageView;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.bumptech.glide.Glide;
|
||
|
import com.google.android.material.tabs.TabLayout;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.BaseActivity;
|
||
|
import com.scb.phone.view.activity.loanrepayment.LevelUpLoanRepaymentCustomAmountInputActivity;
|
||
|
import com.scb.phone.view.custom.common.CustomDialog;
|
||
|
import com.scb.phone.view.fragment.BaseFragment;
|
||
|
import com.scb.phone.view.fragment.loanrepayment.LevelUpLoanRepaymentPayQrCodeFragment;
|
||
|
import o.AbstractC13163fSk;
|
||
|
import o.C0690Mh;
|
||
|
import o.C0693Mj;
|
||
|
import o.C11560ehe;
|
||
|
import o.C1189Xo;
|
||
|
import o.C1191Xp;
|
||
|
import o.C12944fLv;
|
||
|
import o.C14075fmO;
|
||
|
import o.C14866gag;
|
||
|
import o.C14954gcs;
|
||
|
import o.C14957gcv;
|
||
|
import o.C3172asW;
|
||
|
import o.C6260cNm;
|
||
|
import o.Cdw;
|
||
|
import o.EnumC8951daY;
|
||
|
import o.Heg;
|
||
|
import o.InterfaceC0834Plv;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC14894gbR;
|
||
|
import o.InterfaceC15577gud;
|
||
|
import o.InterfaceC17396wQp;
|
||
|
import o.LHy;
|
||
|
import o.PNS;
|
||
|
import o.XB;
|
||
|
import o.cZD;
|
||
|
import o.cZF;
|
||
|
import o.fSQ;
|
||
|
import o.gjJ;
|
||
|
import o.guQ;
|
||
|
import o.huo;
|
||
|
import o.pug;
|
||
|
import o.qNQ;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class LevelUpLoanRepaymentPayQrCodeFragment extends Hilt_LevelUpLoanRepaymentPayQrCodeFragment implements cZD, TabLayout.IeS {
|
||
|
public static final LWm d = new LWm(0);
|
||
|
|
||
|
@BindView
|
||
|
public Button btnEditAmount;
|
||
|
|
||
|
@BindView
|
||
|
public Button btnQrCode;
|
||
|
private huo<Intent> c;
|
||
|
|
||
|
@BindView
|
||
|
public View divider;
|
||
|
private boolean f;
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivEditAmount;
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivQrCodeIcon;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout llTxtEditAmount;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout llTxtQrCodeHorizontal;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout llTxtQrCodeVertical;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C6260cNm presenter;
|
||
|
|
||
|
@BindView
|
||
|
public View spaceBottom;
|
||
|
|
||
|
@BindView
|
||
|
public View spaceTop;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C12944fLv successScreenshotHelper;
|
||
|
|
||
|
@BindView
|
||
|
public TabLayout tlQrOption;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvBillerName;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvBillerReference1;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvBillerReference2;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvBillerRemark;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvHorizontalTitle1;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvHorizontalTitle2;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvLabelVerticalDescription;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvLabelVerticalSubDescription;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvLabelVerticalTitle;
|
||
|
|
||
|
@Override // com.google.android.material.tabs.TabLayout.Sts
|
||
|
public final void a(TabLayout.RVV rvv) {
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.material.tabs.TabLayout.Sts
|
||
|
public final void d(TabLayout.RVV rvv) {
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class LWm {
|
||
|
private LWm() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ LWm(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559744, viewGroup, false);
|
||
|
((BaseFragment) this).a = ButterKnife.c(this, inflate);
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
huo<Intent> registerForActivityResult = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.fmG
|
||
|
private LevelUpLoanRepaymentPayQrCodeFragment b;
|
||
|
|
||
|
@Override // o.InterfaceC0834Plv
|
||
|
public final void d(Object obj) {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.d(this.b, (Heg) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
C14957gcv.c(registerForActivityResult, "");
|
||
|
this.c = registerForActivityResult;
|
||
|
Button button = this.btnEditAmount;
|
||
|
if (button == null) {
|
||
|
C14957gcv.a("");
|
||
|
button = null;
|
||
|
}
|
||
|
button.setOnClickListener(new View.OnClickListener(this) { // from class: o.fmJ
|
||
|
private LevelUpLoanRepaymentPayQrCodeFragment b;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.e(this.b);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
ImageView imageView = this.ivEditAmount;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
imageView.setOnClickListener(new View.OnClickListener(this) { // from class: o.fmK
|
||
|
private LevelUpLoanRepaymentPayQrCodeFragment a;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.b(this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
});
|
||
|
Button button2 = this.btnQrCode;
|
||
|
if (button2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
button2 = null;
|
||
|
}
|
||
|
button2.setOnClickListener(new View.OnClickListener(this) { // from class: o.fmI
|
||
|
private LevelUpLoanRepaymentPayQrCodeFragment d;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.d(this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
});
|
||
|
if (this.f) {
|
||
|
Bundle arguments = getArguments();
|
||
|
e(arguments != null ? (XB) arguments.getParcelable("EXTRA_BILL_DATA") : null);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void c(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
c("qr_repayment_landing", new pug("source", "lvl"), new pug("product_code", str));
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void b(String str, String str2) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
c(str, new pug("source", "lvl"), new pug("product_code", str2));
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void setUserVisibleHint(boolean z) {
|
||
|
if (z && this.presenter != null) {
|
||
|
Bundle arguments = getArguments();
|
||
|
e(arguments != null ? (XB) arguments.getParcelable("EXTRA_BILL_DATA") : null);
|
||
|
}
|
||
|
this.f = z;
|
||
|
}
|
||
|
|
||
|
private final void e(XB xb) {
|
||
|
C6260cNm c6260cNm = this.presenter;
|
||
|
if (c6260cNm == null) {
|
||
|
C14957gcv.a("");
|
||
|
c6260cNm = null;
|
||
|
}
|
||
|
c6260cNm.e((C6260cNm) this);
|
||
|
String string = getString(R.string.levelup_repayment_qrcode_slip_title);
|
||
|
C14957gcv.c((Object) string, "");
|
||
|
c6260cNm.d(string);
|
||
|
c6260cNm.e(xb);
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void e(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
TextView textView = this.tvBillerName;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setText(str);
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void a(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
TextView textView = this.tvBillerReference1;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setText(str);
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void d(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
TextView textView = this.tvBillerReference2;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
TextView textView2 = textView;
|
||
|
C14957gcv.e(textView2, "");
|
||
|
textView2.setVisibility(0);
|
||
|
textView.setText(str);
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void d(String str, String str2, String str3) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
C14957gcv.e(str3, "");
|
||
|
TabLayout tabLayout = this.tlQrOption;
|
||
|
if (tabLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
tabLayout = null;
|
||
|
}
|
||
|
tabLayout.a();
|
||
|
tabLayout.d(tabLayout.c().e(str), tabLayout.A.size(), tabLayout.A.isEmpty());
|
||
|
tabLayout.d(tabLayout.c().e(str2), tabLayout.A.size(), tabLayout.A.isEmpty());
|
||
|
tabLayout.d(tabLayout.c().e(str3), tabLayout.A.size(), tabLayout.A.isEmpty());
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment = this;
|
||
|
if (tabLayout.d.contains(levelUpLoanRepaymentPayQrCodeFragment)) {
|
||
|
return;
|
||
|
}
|
||
|
tabLayout.d.add(levelUpLoanRepaymentPayQrCodeFragment);
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void e(double d2, String str, double d3, double d4) {
|
||
|
C14957gcv.e(str, "");
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
huo<Intent> huoVar = this.c;
|
||
|
if (huoVar == null) {
|
||
|
C14957gcv.a("");
|
||
|
huoVar = null;
|
||
|
}
|
||
|
LevelUpLoanRepaymentCustomAmountInputActivity.LWm lWm = LevelUpLoanRepaymentCustomAmountInputActivity.l;
|
||
|
FragmentActivity fragmentActivity = activity;
|
||
|
C14957gcv.e(fragmentActivity, "");
|
||
|
Intent intent = new Intent(fragmentActivity, (Class<?>) LevelUpLoanRepaymentCustomAmountInputActivity.class);
|
||
|
intent.putExtra("REPAYMENT_CUSTOM_INPUT_CURRENT_AMOUNT", d2);
|
||
|
intent.putExtra("REPAYMENT_CUSTOM_INPUT_BILL_REF2", str);
|
||
|
intent.putExtra("REPAYMENT_CUSTOM_INPUT_BILL_PAID_OFF_AMOUNT", d3);
|
||
|
intent.putExtra("REPAYMENT_CUSTOM_INPUT_BILL_AMOUNT", d4);
|
||
|
huoVar.d(intent, null);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void e() {
|
||
|
ImageView imageView = this.ivQrCodeIcon;
|
||
|
ImageView imageView2 = null;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
ImageView imageView3 = imageView;
|
||
|
C14957gcv.e(imageView3, "");
|
||
|
imageView3.setVisibility(0);
|
||
|
ImageView imageView4 = this.ivQrCodeIcon;
|
||
|
if (imageView4 != null) {
|
||
|
imageView2 = imageView4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
imageView2.setImageResource(R.drawable.ic_qrcode_preview);
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void b(String str, String str2, String str3) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
C14957gcv.e(str3, "");
|
||
|
LinearLayout linearLayout = this.llTxtQrCodeVertical;
|
||
|
TextView textView = null;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(0);
|
||
|
Button button = this.btnQrCode;
|
||
|
if (button == null) {
|
||
|
C14957gcv.a("");
|
||
|
button = null;
|
||
|
}
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(0);
|
||
|
View view = this.divider;
|
||
|
if (view == null) {
|
||
|
C14957gcv.a("");
|
||
|
view = null;
|
||
|
}
|
||
|
C14957gcv.e(view, "");
|
||
|
view.setVisibility(0);
|
||
|
TextView textView2 = this.tvLabelVerticalTitle;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
TextView textView3 = textView2;
|
||
|
C14957gcv.e(textView3, "");
|
||
|
textView3.setVisibility(0);
|
||
|
TextView textView4 = this.tvBillerRemark;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
TextView textView5 = textView4;
|
||
|
C14957gcv.e(textView5, "");
|
||
|
textView5.setVisibility(0);
|
||
|
LinearLayout linearLayout3 = this.llTxtEditAmount;
|
||
|
if (linearLayout3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout3 = null;
|
||
|
}
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(0);
|
||
|
ImageView imageView = this.ivEditAmount;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
ImageView imageView2 = imageView;
|
||
|
C14957gcv.e(imageView2, "");
|
||
|
imageView2.setVisibility(8);
|
||
|
LinearLayout linearLayout5 = this.llTxtQrCodeHorizontal;
|
||
|
if (linearLayout5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout5 = null;
|
||
|
}
|
||
|
LinearLayout linearLayout6 = linearLayout5;
|
||
|
C14957gcv.e(linearLayout6, "");
|
||
|
linearLayout6.setVisibility(8);
|
||
|
Button button3 = this.btnEditAmount;
|
||
|
if (button3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
button3 = null;
|
||
|
}
|
||
|
Button button4 = button3;
|
||
|
C14957gcv.e(button4, "");
|
||
|
button4.setVisibility(8);
|
||
|
TextView textView6 = this.tvLabelVerticalSubDescription;
|
||
|
if (textView6 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView6 = null;
|
||
|
}
|
||
|
TextView textView7 = textView6;
|
||
|
C14957gcv.e(textView7, "");
|
||
|
textView7.setVisibility(8);
|
||
|
View view2 = this.spaceTop;
|
||
|
if (view2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view2 = null;
|
||
|
}
|
||
|
C14957gcv.e(view2, "");
|
||
|
view2.setVisibility(8);
|
||
|
View view3 = this.spaceBottom;
|
||
|
if (view3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view3 = null;
|
||
|
}
|
||
|
C14957gcv.e(view3, "");
|
||
|
view3.setVisibility(8);
|
||
|
TextView textView8 = this.tvLabelVerticalTitle;
|
||
|
if (textView8 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView8 = null;
|
||
|
}
|
||
|
textView8.setText(C3172asW.qI_(str, 0));
|
||
|
TextView textView9 = this.tvLabelVerticalDescription;
|
||
|
if (textView9 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView9 = null;
|
||
|
}
|
||
|
textView9.setText(C3172asW.qI_(str2, 0));
|
||
|
TextView textView10 = this.tvBillerRemark;
|
||
|
if (textView10 != null) {
|
||
|
textView = textView10;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(C3172asW.qI_(str3, 0));
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void e(String str, String str2, String str3) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
C14957gcv.e(str3, "");
|
||
|
LinearLayout linearLayout = this.llTxtQrCodeHorizontal;
|
||
|
LinearLayout linearLayout2 = null;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
LinearLayout linearLayout3 = linearLayout;
|
||
|
C14957gcv.e(linearLayout3, "");
|
||
|
linearLayout3.setVisibility(0);
|
||
|
Button button = this.btnQrCode;
|
||
|
if (button == null) {
|
||
|
C14957gcv.a("");
|
||
|
button = null;
|
||
|
}
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(0);
|
||
|
View view = this.divider;
|
||
|
if (view == null) {
|
||
|
C14957gcv.a("");
|
||
|
view = null;
|
||
|
}
|
||
|
C14957gcv.e(view, "");
|
||
|
view.setVisibility(0);
|
||
|
TextView textView = this.tvBillerRemark;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
TextView textView2 = textView;
|
||
|
C14957gcv.e(textView2, "");
|
||
|
textView2.setVisibility(0);
|
||
|
TextView textView3 = this.tvHorizontalTitle1;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setText(C3172asW.qI_(str, 0));
|
||
|
TextView textView4 = this.tvHorizontalTitle2;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
textView4.setText(C3172asW.qI_(str2, 0));
|
||
|
TextView textView5 = this.tvBillerRemark;
|
||
|
if (textView5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView5 = null;
|
||
|
}
|
||
|
textView5.setText(C3172asW.qI_(str3, 0));
|
||
|
View view2 = this.spaceTop;
|
||
|
if (view2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view2 = null;
|
||
|
}
|
||
|
C14957gcv.e(view2, "");
|
||
|
view2.setVisibility(8);
|
||
|
View view3 = this.spaceBottom;
|
||
|
if (view3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view3 = null;
|
||
|
}
|
||
|
C14957gcv.e(view3, "");
|
||
|
view3.setVisibility(8);
|
||
|
Button button3 = this.btnEditAmount;
|
||
|
if (button3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
button3 = null;
|
||
|
}
|
||
|
Button button4 = button3;
|
||
|
C14957gcv.e(button4, "");
|
||
|
button4.setVisibility(8);
|
||
|
LinearLayout linearLayout4 = this.llTxtQrCodeVertical;
|
||
|
if (linearLayout4 != null) {
|
||
|
linearLayout2 = linearLayout4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
LinearLayout linearLayout5 = linearLayout2;
|
||
|
C14957gcv.e(linearLayout5, "");
|
||
|
linearLayout5.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void b(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
LinearLayout linearLayout = this.llTxtQrCodeVertical;
|
||
|
TextView textView = null;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(0);
|
||
|
LinearLayout linearLayout3 = this.llTxtEditAmount;
|
||
|
if (linearLayout3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout3 = null;
|
||
|
}
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(0);
|
||
|
View view = this.spaceTop;
|
||
|
if (view == null) {
|
||
|
C14957gcv.a("");
|
||
|
view = null;
|
||
|
}
|
||
|
C14957gcv.e(view, "");
|
||
|
view.setVisibility(0);
|
||
|
View view2 = this.spaceBottom;
|
||
|
if (view2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view2 = null;
|
||
|
}
|
||
|
C14957gcv.e(view2, "");
|
||
|
view2.setVisibility(0);
|
||
|
ImageView imageView = this.ivQrCodeIcon;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
ImageView imageView2 = imageView;
|
||
|
C14957gcv.e(imageView2, "");
|
||
|
imageView2.setVisibility(8);
|
||
|
Button button = this.btnQrCode;
|
||
|
if (button == null) {
|
||
|
C14957gcv.a("");
|
||
|
button = null;
|
||
|
}
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(8);
|
||
|
View view3 = this.divider;
|
||
|
if (view3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view3 = null;
|
||
|
}
|
||
|
C14957gcv.e(view3, "");
|
||
|
view3.setVisibility(8);
|
||
|
TextView textView2 = this.tvBillerRemark;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
TextView textView3 = textView2;
|
||
|
C14957gcv.e(textView3, "");
|
||
|
textView3.setVisibility(8);
|
||
|
LinearLayout linearLayout5 = this.llTxtQrCodeHorizontal;
|
||
|
if (linearLayout5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout5 = null;
|
||
|
}
|
||
|
LinearLayout linearLayout6 = linearLayout5;
|
||
|
C14957gcv.e(linearLayout6, "");
|
||
|
linearLayout6.setVisibility(8);
|
||
|
TextView textView4 = this.tvLabelVerticalSubDescription;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
TextView textView5 = textView4;
|
||
|
C14957gcv.e(textView5, "");
|
||
|
textView5.setVisibility(8);
|
||
|
Button button3 = this.btnEditAmount;
|
||
|
if (button3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
button3 = null;
|
||
|
}
|
||
|
Button button4 = button3;
|
||
|
C14957gcv.e(button4, "");
|
||
|
button4.setVisibility(8);
|
||
|
TextView textView6 = this.tvLabelVerticalTitle;
|
||
|
if (textView6 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView6 = null;
|
||
|
}
|
||
|
TextView textView7 = textView6;
|
||
|
C14957gcv.e(textView7, "");
|
||
|
textView7.setVisibility(8);
|
||
|
ImageView imageView3 = this.ivEditAmount;
|
||
|
if (imageView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView3 = null;
|
||
|
}
|
||
|
ImageView imageView4 = imageView3;
|
||
|
C14957gcv.e(imageView4, "");
|
||
|
imageView4.setVisibility(8);
|
||
|
TextView textView8 = this.tvLabelVerticalDescription;
|
||
|
if (textView8 != null) {
|
||
|
textView = textView8;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(C3172asW.qI_(str, 0));
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void d(String str, String str2, String str3, String str4) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
C14957gcv.e(str3, "");
|
||
|
C14957gcv.e(str4, "");
|
||
|
LinearLayout linearLayout = this.llTxtQrCodeVertical;
|
||
|
TextView textView = null;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(0);
|
||
|
Button button = this.btnQrCode;
|
||
|
if (button == null) {
|
||
|
C14957gcv.a("");
|
||
|
button = null;
|
||
|
}
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(0);
|
||
|
View view = this.divider;
|
||
|
if (view == null) {
|
||
|
C14957gcv.a("");
|
||
|
view = null;
|
||
|
}
|
||
|
C14957gcv.e(view, "");
|
||
|
view.setVisibility(0);
|
||
|
TextView textView2 = this.tvBillerRemark;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
TextView textView3 = textView2;
|
||
|
C14957gcv.e(textView3, "");
|
||
|
textView3.setVisibility(0);
|
||
|
LinearLayout linearLayout3 = this.llTxtEditAmount;
|
||
|
if (linearLayout3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout3 = null;
|
||
|
}
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(0);
|
||
|
ImageView imageView = this.ivEditAmount;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
ImageView imageView2 = imageView;
|
||
|
C14957gcv.e(imageView2, "");
|
||
|
imageView2.setVisibility(0);
|
||
|
TextView textView4 = this.tvLabelVerticalTitle;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
TextView textView5 = textView4;
|
||
|
C14957gcv.e(textView5, "");
|
||
|
textView5.setVisibility(0);
|
||
|
TextView textView6 = this.tvLabelVerticalSubDescription;
|
||
|
if (textView6 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView6 = null;
|
||
|
}
|
||
|
TextView textView7 = textView6;
|
||
|
C14957gcv.e(textView7, "");
|
||
|
textView7.setVisibility(0);
|
||
|
LinearLayout linearLayout5 = this.llTxtQrCodeHorizontal;
|
||
|
if (linearLayout5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout5 = null;
|
||
|
}
|
||
|
LinearLayout linearLayout6 = linearLayout5;
|
||
|
C14957gcv.e(linearLayout6, "");
|
||
|
linearLayout6.setVisibility(8);
|
||
|
Button button3 = this.btnEditAmount;
|
||
|
if (button3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
button3 = null;
|
||
|
}
|
||
|
Button button4 = button3;
|
||
|
C14957gcv.e(button4, "");
|
||
|
button4.setVisibility(8);
|
||
|
View view2 = this.spaceTop;
|
||
|
if (view2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view2 = null;
|
||
|
}
|
||
|
C14957gcv.e(view2, "");
|
||
|
view2.setVisibility(8);
|
||
|
View view3 = this.spaceBottom;
|
||
|
if (view3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view3 = null;
|
||
|
}
|
||
|
C14957gcv.e(view3, "");
|
||
|
view3.setVisibility(8);
|
||
|
TextView textView8 = this.tvLabelVerticalTitle;
|
||
|
if (textView8 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView8 = null;
|
||
|
}
|
||
|
textView8.setText(C3172asW.qI_(str, 0));
|
||
|
TextView textView9 = this.tvLabelVerticalDescription;
|
||
|
if (textView9 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView9 = null;
|
||
|
}
|
||
|
textView9.setText(C3172asW.qI_(str2, 0));
|
||
|
TextView textView10 = this.tvLabelVerticalSubDescription;
|
||
|
if (textView10 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView10 = null;
|
||
|
}
|
||
|
textView10.setText(str3);
|
||
|
TextView textView11 = this.tvBillerRemark;
|
||
|
if (textView11 != null) {
|
||
|
textView = textView11;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(C3172asW.qI_(str4, 0));
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void a(String str, String str2) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
LinearLayout linearLayout = this.llTxtQrCodeVertical;
|
||
|
TextView textView = null;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(8);
|
||
|
LinearLayout linearLayout3 = this.llTxtQrCodeHorizontal;
|
||
|
if (linearLayout3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout3 = null;
|
||
|
}
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(8);
|
||
|
Button button = this.btnQrCode;
|
||
|
if (button == null) {
|
||
|
C14957gcv.a("");
|
||
|
button = null;
|
||
|
}
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(8);
|
||
|
TextView textView2 = this.tvLabelVerticalSubDescription;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
TextView textView3 = textView2;
|
||
|
C14957gcv.e(textView3, "");
|
||
|
textView3.setVisibility(8);
|
||
|
View view = this.spaceTop;
|
||
|
if (view == null) {
|
||
|
C14957gcv.a("");
|
||
|
view = null;
|
||
|
}
|
||
|
C14957gcv.e(view, "");
|
||
|
view.setVisibility(8);
|
||
|
View view2 = this.spaceBottom;
|
||
|
if (view2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view2 = null;
|
||
|
}
|
||
|
C14957gcv.e(view2, "");
|
||
|
view2.setVisibility(8);
|
||
|
View view3 = this.divider;
|
||
|
if (view3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
view3 = null;
|
||
|
}
|
||
|
C14957gcv.e(view3, "");
|
||
|
view3.setVisibility(0);
|
||
|
TextView textView4 = this.tvBillerRemark;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
TextView textView5 = textView4;
|
||
|
C14957gcv.e(textView5, "");
|
||
|
textView5.setVisibility(0);
|
||
|
Button button3 = this.btnEditAmount;
|
||
|
if (button3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
button3 = null;
|
||
|
}
|
||
|
Button button4 = button3;
|
||
|
C14957gcv.e(button4, "");
|
||
|
button4.setVisibility(0);
|
||
|
TextView textView6 = this.tvLabelVerticalTitle;
|
||
|
if (textView6 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView6 = null;
|
||
|
}
|
||
|
TextView textView7 = textView6;
|
||
|
C14957gcv.e(textView7, "");
|
||
|
textView7.setVisibility(0);
|
||
|
TextView textView8 = this.tvBillerRemark;
|
||
|
if (textView8 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView8 = null;
|
||
|
}
|
||
|
textView8.setText(C3172asW.qI_(str2, 0));
|
||
|
TextView textView9 = this.tvLabelVerticalTitle;
|
||
|
if (textView9 != null) {
|
||
|
textView = textView9;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(C3172asW.qI_(str, 0));
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroy() {
|
||
|
super.onDestroy();
|
||
|
huo<Intent> huoVar = this.c;
|
||
|
if (huoVar == null) {
|
||
|
C14957gcv.a("");
|
||
|
huoVar = null;
|
||
|
}
|
||
|
huoVar.e();
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void e(String str, String str2) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
Cdw a = Glide.c(activity).b().a(str2).c(R.drawable.ic_qrcode_preview).b(new PNS().c(R.color.f3122131099820).a(LHy.c)).a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class IeS extends qNQ<Bitmap> {
|
||
|
private LevelUpLoanRepaymentPayQrCodeFragment b;
|
||
|
private String c;
|
||
|
|
||
|
IeS(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment, String str) {
|
||
|
this.b = levelUpLoanRepaymentPayQrCodeFragment;
|
||
|
this.c = str;
|
||
|
}
|
||
|
|
||
|
@Override // o.YcZ
|
||
|
public final /* synthetic */ void d(Object obj) {
|
||
|
Bitmap bitmap = (Bitmap) obj;
|
||
|
C14957gcv.e(bitmap, "");
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment = this.b;
|
||
|
C6260cNm c6260cNm = levelUpLoanRepaymentPayQrCodeFragment.presenter;
|
||
|
ImageView imageView = null;
|
||
|
if (c6260cNm == null) {
|
||
|
C14957gcv.a("");
|
||
|
c6260cNm = null;
|
||
|
}
|
||
|
Bitmap VG_ = c6260cNm.VG_(this.c, bitmap);
|
||
|
C14957gcv.e(VG_, "");
|
||
|
ImageView imageView2 = levelUpLoanRepaymentPayQrCodeFragment.ivQrCodeIcon;
|
||
|
if (imageView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView2 = null;
|
||
|
}
|
||
|
ImageView imageView3 = imageView2;
|
||
|
C14957gcv.e(imageView3, "");
|
||
|
imageView3.setVisibility(0);
|
||
|
ImageView imageView4 = levelUpLoanRepaymentPayQrCodeFragment.ivQrCodeIcon;
|
||
|
if (imageView4 != null) {
|
||
|
imageView = imageView4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
imageView.setImageBitmap(VG_);
|
||
|
}
|
||
|
|
||
|
@Override // o.YcZ
|
||
|
public final void avx_(Drawable drawable) {
|
||
|
ImageView imageView = this.b.ivQrCodeIcon;
|
||
|
ImageView imageView2 = null;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
ImageView imageView3 = imageView;
|
||
|
C14957gcv.e(imageView3, "");
|
||
|
imageView3.setVisibility(0);
|
||
|
ImageView imageView4 = this.b.ivQrCodeIcon;
|
||
|
if (imageView4 != null) {
|
||
|
imageView2 = imageView4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
imageView2.setImageResource(R.drawable.ic_qrcode_preview);
|
||
|
}
|
||
|
|
||
|
@Override // o.qNQ, o.YcZ
|
||
|
public final void avy_(Drawable drawable) {
|
||
|
super.avy_(drawable);
|
||
|
ImageView imageView = this.b.ivQrCodeIcon;
|
||
|
ImageView imageView2 = null;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
ImageView imageView3 = imageView;
|
||
|
C14957gcv.e(imageView3, "");
|
||
|
imageView3.setVisibility(0);
|
||
|
ImageView imageView4 = this.b.ivQrCodeIcon;
|
||
|
if (imageView4 != null) {
|
||
|
imageView2 = imageView4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
imageView2.setImageResource(R.drawable.ic_qrcode_preview);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void b() {
|
||
|
InterfaceC17396wQp activity = getActivity();
|
||
|
if (activity == null || !(activity instanceof cZF)) {
|
||
|
return;
|
||
|
}
|
||
|
((cZF) activity).d();
|
||
|
}
|
||
|
|
||
|
public final void d() {
|
||
|
a((Throwable) null);
|
||
|
C0693Mj c0693Mj = new C0693Mj();
|
||
|
c0693Mj.d = getString(R.string.levelup_repayment_qrcode_saved_qr_popup_title);
|
||
|
c0693Mj.c = getString(R.string.levelup_repayment_qrcode_saved_qr_popup_description);
|
||
|
C0690Mh c0690Mh = new C0690Mh();
|
||
|
Runnable runnable = new Runnable(this) { // from class: o.fmH
|
||
|
private LevelUpLoanRepaymentPayQrCodeFragment d;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.c(this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
};
|
||
|
c0690Mh.e = C0690Mh.IeS.CUSTOM;
|
||
|
c0690Mh.d = runnable;
|
||
|
c0690Mh.b = getString(R.string.levelup_repayment_qrcode_saved_qr_popup_allow);
|
||
|
c0693Mj.e = c0690Mh;
|
||
|
C0690Mh c0690Mh2 = new C0690Mh();
|
||
|
c0690Mh2.e = C0690Mh.IeS.JUST_DISMISS;
|
||
|
c0690Mh2.b = getString(R.string.levelup_repayment_qrcode_saved_qr_popup_deny);
|
||
|
c0693Mj.b = c0690Mh2;
|
||
|
e(c0693Mj);
|
||
|
}
|
||
|
|
||
|
public final void f() {
|
||
|
Context context = getContext();
|
||
|
if (isDetached() || context == null) {
|
||
|
return;
|
||
|
}
|
||
|
C6260cNm c6260cNm = this.presenter;
|
||
|
if (c6260cNm == null) {
|
||
|
C14957gcv.a("");
|
||
|
c6260cNm = null;
|
||
|
}
|
||
|
c6260cNm.g();
|
||
|
}
|
||
|
|
||
|
public final void a(final InterfaceC15577gud interfaceC15577gud) {
|
||
|
C14957gcv.e(interfaceC15577gud, "");
|
||
|
guQ.b("onShowRationale", new Object[0]);
|
||
|
CustomDialog b = CustomDialog.b(getContext());
|
||
|
String string = getString(R.string.levelup_repayment_qrcode_saved_qr_popup_allow_access_title);
|
||
|
if (gjJ.a(string)) {
|
||
|
b.mTitleTextView.setVisibility(0);
|
||
|
b.mTitleTextView.setText(string);
|
||
|
}
|
||
|
String string2 = getString(R.string.levelup_repayment_qrcode_saved_qr_popup__allow_access_description);
|
||
|
if (gjJ.a(string2)) {
|
||
|
b.mTextTextView.setVisibility(0);
|
||
|
b.mTextTextView.setText(string2);
|
||
|
}
|
||
|
((CustomDialog) CustomDialog.e(new Object[]{b.aoT_(R.string.permission_allow, new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.fmB
|
||
|
private InterfaceC15577gud a;
|
||
|
|
||
|
@Override // android.content.DialogInterface.OnClickListener
|
||
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.e(this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = interfaceC15577gud;
|
||
|
}
|
||
|
}), Integer.valueOf(R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.fmD
|
||
|
private InterfaceC15577gud a;
|
||
|
|
||
|
@Override // android.content.DialogInterface.OnClickListener
|
||
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.d(this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = interfaceC15577gud;
|
||
|
}
|
||
|
}})).show();
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void d(int i) {
|
||
|
TabLayout tabLayout = this.tlQrOption;
|
||
|
if (tabLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
tabLayout = null;
|
||
|
}
|
||
|
TabLayout.RVV a = tabLayout.a(i);
|
||
|
if (a != null) {
|
||
|
TabLayout tabLayout2 = a.h;
|
||
|
if (tabLayout2 != null) {
|
||
|
tabLayout2.a(a, true);
|
||
|
return;
|
||
|
}
|
||
|
throw new IllegalArgumentException("Tab not attached to a TabLayout");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void a() {
|
||
|
TextView textView = this.tvLabelVerticalSubDescription;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
TextView textView2 = textView;
|
||
|
C14957gcv.e(textView2, "");
|
||
|
textView2.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
final /* synthetic */ class HBt extends C14954gcs implements InterfaceC14894gbR<Uri, C14866gag> {
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ C14866gag invoke(Uri uri) {
|
||
|
C14957gcv.e(uri, "");
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.a((LevelUpLoanRepaymentPayQrCodeFragment) this.f);
|
||
|
return C14866gag.c;
|
||
|
}
|
||
|
|
||
|
HBt(Object obj) {
|
||
|
super(1, obj, LevelUpLoanRepaymentPayQrCodeFragment.class, "onSaveScreenshotSuccess", "onSaveScreenshotSuccess(Landroid/net/Uri;)V");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
final /* synthetic */ class RVV extends C14954gcs implements InterfaceC14894gbR<Throwable, C14866gag> {
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ C14866gag invoke(Throwable th) {
|
||
|
((LevelUpLoanRepaymentPayQrCodeFragment) this.f).a(th);
|
||
|
return C14866gag.c;
|
||
|
}
|
||
|
|
||
|
RVV(Object obj) {
|
||
|
super(1, obj, LevelUpLoanRepaymentPayQrCodeFragment.class, "onSaveScreenshotError", "onSaveScreenshotError(Ljava/lang/Throwable;)V");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void e(C1191Xp c1191Xp) {
|
||
|
C14957gcv.e(c1191Xp, "");
|
||
|
C12944fLv c12944fLv = this.successScreenshotHelper;
|
||
|
if (c12944fLv == null) {
|
||
|
C14957gcv.a("");
|
||
|
c12944fLv = null;
|
||
|
}
|
||
|
Context context = getContext();
|
||
|
c1191Xp.p = new C1189Xo().e("LEVLEUP_LOAN_REPAYMENT_QR");
|
||
|
AbstractC13163fSk<Uri> d2 = c12944fLv.d(c1191Xp, context, true, true, false);
|
||
|
final HBt hBt = new HBt(this);
|
||
|
fSQ<? super Uri> fsq = new fSQ(hBt) { // from class: o.fmM
|
||
|
private InterfaceC14894gbR d;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.b(this.d, obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = hBt;
|
||
|
}
|
||
|
};
|
||
|
final RVV rvv = new RVV(this);
|
||
|
d2.subscribe(fsq, new fSQ(rvv) { // from class: o.fmN
|
||
|
private InterfaceC14894gbR e;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
LevelUpLoanRepaymentPayQrCodeFragment.e(this.e, obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = rvv;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public final void a(Throwable th) {
|
||
|
if (th != null) {
|
||
|
guQ.a(th, "onSaveScreenshotError", new Object[0]);
|
||
|
}
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (isDetached() || activity == null) {
|
||
|
return;
|
||
|
}
|
||
|
d(R.string.levelup_repayment_qrcode_saved_qr_error, EnumC8951daY.ERROR);
|
||
|
}
|
||
|
|
||
|
private final void d(int i, EnumC8951daY enumC8951daY) {
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
FragmentActivity fragmentActivity = activity;
|
||
|
String string = getString(i);
|
||
|
if (getActivity() != null) {
|
||
|
BaseActivity.a(new Object[]{(BaseActivity) getActivity(), fragmentActivity, Integer.valueOf(R.id.ll_level_up_repayment_pay), string, enumC8951daY}, 855668825, -855668822, R.id.ll_level_up_repayment_pay);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
|
||
|
C14957gcv.e(strArr, "");
|
||
|
C14957gcv.e(iArr, "");
|
||
|
super.onRequestPermissionsResult(i, strArr, iArr);
|
||
|
C14075fmO.b(this, i, iArr);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment) {
|
||
|
C14957gcv.e(levelUpLoanRepaymentPayQrCodeFragment, "");
|
||
|
Intent intent = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS");
|
||
|
Context context = levelUpLoanRepaymentPayQrCodeFragment.getContext();
|
||
|
if (context != null) {
|
||
|
intent.setData(Uri.fromParts("package", context.getPackageName(), null));
|
||
|
}
|
||
|
levelUpLoanRepaymentPayQrCodeFragment.startActivity(intent);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(InterfaceC15577gud interfaceC15577gud) {
|
||
|
C14957gcv.e(interfaceC15577gud, "");
|
||
|
interfaceC15577gud.e();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment) {
|
||
|
C14957gcv.e(levelUpLoanRepaymentPayQrCodeFragment, "");
|
||
|
C6260cNm c6260cNm = levelUpLoanRepaymentPayQrCodeFragment.presenter;
|
||
|
if (c6260cNm == null) {
|
||
|
C14957gcv.a("");
|
||
|
c6260cNm = null;
|
||
|
}
|
||
|
c6260cNm.a("qr_slip_save");
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment) {
|
||
|
C14957gcv.e(levelUpLoanRepaymentPayQrCodeFragment, "");
|
||
|
C6260cNm c6260cNm = levelUpLoanRepaymentPayQrCodeFragment.presenter;
|
||
|
if (c6260cNm == null) {
|
||
|
C14957gcv.a("");
|
||
|
c6260cNm = null;
|
||
|
}
|
||
|
C6260cNm.b(new Object[]{c6260cNm, "qr_edit_amount"}, 762417054, -762417048, System.identityHashCode(c6260cNm));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
|
||
|
C14957gcv.e(interfaceC14894gbR, "");
|
||
|
interfaceC14894gbR.invoke(obj);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment, Heg heg) {
|
||
|
Intent intent;
|
||
|
C14957gcv.e(levelUpLoanRepaymentPayQrCodeFragment, "");
|
||
|
C14957gcv.e(heg, "");
|
||
|
if (levelUpLoanRepaymentPayQrCodeFragment.getActivity() == null || -1 != heg.e || (intent = heg.b) == null) {
|
||
|
return;
|
||
|
}
|
||
|
double doubleExtra = intent.getDoubleExtra("REPAYMENT_CUSTOM_INPUT_AMOUNT", 0.0d);
|
||
|
C6260cNm c6260cNm = levelUpLoanRepaymentPayQrCodeFragment.presenter;
|
||
|
if (c6260cNm == null) {
|
||
|
C14957gcv.a("");
|
||
|
c6260cNm = null;
|
||
|
}
|
||
|
c6260cNm.c(doubleExtra);
|
||
|
c6260cNm.a();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment) {
|
||
|
C14957gcv.e(levelUpLoanRepaymentPayQrCodeFragment, "");
|
||
|
C6260cNm c6260cNm = levelUpLoanRepaymentPayQrCodeFragment.presenter;
|
||
|
if (c6260cNm == null) {
|
||
|
C14957gcv.a("");
|
||
|
c6260cNm = null;
|
||
|
}
|
||
|
C6260cNm.b(new Object[]{c6260cNm, "qr_specific_amount"}, 762417054, -762417048, System.identityHashCode(c6260cNm));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(InterfaceC15577gud interfaceC15577gud) {
|
||
|
C14957gcv.e(interfaceC15577gud, "");
|
||
|
interfaceC15577gud.c();
|
||
|
}
|
||
|
|
||
|
public static final /* synthetic */ void a(LevelUpLoanRepaymentPayQrCodeFragment levelUpLoanRepaymentPayQrCodeFragment) {
|
||
|
if (!levelUpLoanRepaymentPayQrCodeFragment.getUserVisibleHint() || levelUpLoanRepaymentPayQrCodeFragment.getActivity() == null) {
|
||
|
return;
|
||
|
}
|
||
|
levelUpLoanRepaymentPayQrCodeFragment.d(R.string.levelup_repayment_qrcode_saved_qr, EnumC8951daY.SUCCESS);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.material.tabs.TabLayout.Sts
|
||
|
public final void e(TabLayout.RVV rvv) {
|
||
|
C6260cNm c6260cNm = null;
|
||
|
Integer valueOf = rvv != null ? Integer.valueOf(rvv.i) : null;
|
||
|
if (valueOf != null && valueOf.intValue() == 0) {
|
||
|
C6260cNm c6260cNm2 = this.presenter;
|
||
|
if (c6260cNm2 != null) {
|
||
|
c6260cNm = c6260cNm2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
C6260cNm.b(new Object[]{c6260cNm}, 1422821831, -1422821828, System.identityHashCode(c6260cNm));
|
||
|
return;
|
||
|
}
|
||
|
if (valueOf != null && valueOf.intValue() == 1) {
|
||
|
C6260cNm c6260cNm3 = this.presenter;
|
||
|
if (c6260cNm3 != null) {
|
||
|
c6260cNm = c6260cNm3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
C6260cNm.b(new Object[]{c6260cNm}, -1759327210, 1759327215, System.identityHashCode(c6260cNm));
|
||
|
return;
|
||
|
}
|
||
|
if (valueOf == null || valueOf.intValue() != 2) {
|
||
|
return;
|
||
|
}
|
||
|
C6260cNm c6260cNm4 = this.presenter;
|
||
|
if (c6260cNm4 != null) {
|
||
|
c6260cNm = c6260cNm4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
c6260cNm.a();
|
||
|
}
|
||
|
|
||
|
@Override // o.cZD
|
||
|
public final void c() {
|
||
|
if (getActivity() != null) {
|
||
|
if (BaseActivity.P()) {
|
||
|
C14075fmO.d(this);
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
C14075fmO.b(this);
|
||
|
}
|
||
|
}
|