723 lines
35 KiB
Java
723 lines
35 KiB
Java
|
package com.scb.phone.view.fragment.loan;
|
||
|
|
||
|
import android.animation.ObjectAnimator;
|
||
|
import android.content.ActivityNotFoundException;
|
||
|
import android.content.Context;
|
||
|
import android.content.Intent;
|
||
|
import android.net.Uri;
|
||
|
import android.os.Build;
|
||
|
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.RelativeLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.core.widget.NestedScrollView;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import androidx.viewpager.widget.ViewPager;
|
||
|
import com.huawei.hms.support.api.entity.common.CommonConstant;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.loan.LoanInputActivity;
|
||
|
import com.scb.phone.view.adapter.loan.LoanDetailAdapter;
|
||
|
import com.scb.phone.view.custom.common.CustomBillsToPay;
|
||
|
import com.scb.phone.view.custom.common.CustomHorizontalProgressBar;
|
||
|
import com.scb.phone.view.custom.common.WrapContentViewPager;
|
||
|
import com.scb.phone.view.fragment.loan.LoanDetailFragment;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import me.relex.circleindicator.CircleIndicator;
|
||
|
import o.C0385Fj;
|
||
|
import o.C14831gS;
|
||
|
import o.C14851gaI;
|
||
|
import o.C14881gav;
|
||
|
import o.C14957gcv;
|
||
|
import o.C17656ygW;
|
||
|
import o.C4042bOW;
|
||
|
import o.C4078bPa;
|
||
|
import o.InterfaceC12843fIr;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC6653cZL;
|
||
|
import o.ZI;
|
||
|
import o.fJM;
|
||
|
import o.guQ;
|
||
|
import o.pug;
|
||
|
import o.qeC;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class LoanDetailFragment extends Hilt_LoanDetailFragment implements InterfaceC6653cZL.LWm, ViewPager.ojQ {
|
||
|
private C17656ygW d;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C4078bPa loanDetailPresenter;
|
||
|
|
||
|
@Override // androidx.viewpager.widget.ViewPager.ojQ
|
||
|
public final void onPageScrollStateChanged(int i) {
|
||
|
}
|
||
|
|
||
|
@Override // androidx.viewpager.widget.ViewPager.ojQ
|
||
|
public final void onPageScrolled(int i, float f, int i2) {
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
Intent intent;
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
C4078bPa c4078bPa = null;
|
||
|
final int i = 0;
|
||
|
View inflate = getLayoutInflater().inflate(R.layout.2131559746, (ViewGroup) null, false);
|
||
|
int i2 = R.id.account_detail_collapse_layout;
|
||
|
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.account_detail_collapse_layout);
|
||
|
if (linearLayout != null) {
|
||
|
i2 = R.id.account_name_section;
|
||
|
LinearLayout linearLayout2 = (LinearLayout) qeC.e(inflate, R.id.account_name_section);
|
||
|
if (linearLayout2 != null) {
|
||
|
i2 = R.id.btn_goto_level_up;
|
||
|
Button button = (Button) qeC.e(inflate, R.id.btn_goto_level_up);
|
||
|
if (button != null) {
|
||
|
i2 = R.id.custom_bills_to_play;
|
||
|
CustomBillsToPay customBillsToPay = (CustomBillsToPay) qeC.e(inflate, R.id.custom_bills_to_play);
|
||
|
if (customBillsToPay != null) {
|
||
|
i2 = R.id.installment_amount_value_tv;
|
||
|
TextView textView = (TextView) qeC.e(inflate, R.id.installment_amount_value_tv);
|
||
|
if (textView != null) {
|
||
|
i2 = R.id.interest_rate_tv;
|
||
|
TextView textView2 = (TextView) qeC.e(inflate, R.id.interest_rate_tv);
|
||
|
if (textView2 != null) {
|
||
|
i2 = R.id.linear_loan_status_ok;
|
||
|
LinearLayout linearLayout3 = (LinearLayout) qeC.e(inflate, R.id.linear_loan_status_ok);
|
||
|
if (linearLayout3 != null) {
|
||
|
i2 = R.id.linear_loan_status_restricted;
|
||
|
LinearLayout linearLayout4 = (LinearLayout) qeC.e(inflate, R.id.linear_loan_status_restricted);
|
||
|
if (linearLayout4 != null) {
|
||
|
i2 = R.id.loan_account_name_tv;
|
||
|
TextView textView3 = (TextView) qeC.e(inflate, R.id.loan_account_name_tv);
|
||
|
if (textView3 != null) {
|
||
|
i2 = R.id.loan_detail_expand_arrow;
|
||
|
ImageView imageView = (ImageView) qeC.e(inflate, R.id.loan_detail_expand_arrow);
|
||
|
if (imageView != null) {
|
||
|
i2 = R.id.loan_detail_late_payments_tv;
|
||
|
TextView textView4 = (TextView) qeC.e(inflate, R.id.loan_detail_late_payments_tv);
|
||
|
if (textView4 != null) {
|
||
|
i2 = R.id.loan_detail_layout;
|
||
|
RelativeLayout relativeLayout = (RelativeLayout) qeC.e(inflate, R.id.loan_detail_layout);
|
||
|
if (relativeLayout != null) {
|
||
|
i2 = R.id.loan_detail_progress_bar;
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar = (CustomHorizontalProgressBar) qeC.e(inflate, R.id.loan_detail_progress_bar);
|
||
|
if (customHorizontalProgressBar != null) {
|
||
|
i2 = R.id.loan_detail_restricted_description_tv;
|
||
|
TextView textView5 = (TextView) qeC.e(inflate, R.id.loan_detail_restricted_description_tv);
|
||
|
if (textView5 != null) {
|
||
|
NestedScrollView nestedScrollView = (NestedScrollView) inflate;
|
||
|
i2 = R.id.loan_detail_tenor_tv;
|
||
|
TextView textView6 = (TextView) qeC.e(inflate, R.id.loan_detail_tenor_tv);
|
||
|
if (textView6 != null) {
|
||
|
i2 = R.id.loan_type_tv;
|
||
|
TextView textView7 = (TextView) qeC.e(inflate, R.id.loan_type_tv);
|
||
|
if (textView7 != null) {
|
||
|
i2 = R.id.loans_detail_indicator;
|
||
|
CircleIndicator circleIndicator = (CircleIndicator) qeC.e(inflate, R.id.loans_detail_indicator);
|
||
|
if (circleIndicator != null) {
|
||
|
i2 = R.id.loans_detail_view_pager;
|
||
|
WrapContentViewPager wrapContentViewPager = (WrapContentViewPager) qeC.e(inflate, R.id.loans_detail_view_pager);
|
||
|
if (wrapContentViewPager != null) {
|
||
|
i2 = R.id.tvLatePaymentLabel;
|
||
|
TextView textView8 = (TextView) qeC.e(inflate, R.id.tvLatePaymentLabel);
|
||
|
if (textView8 != null) {
|
||
|
TextView textView9 = (TextView) qeC.e(inflate, R.id.tvLoanDetailTenorLabel);
|
||
|
if (textView9 != null) {
|
||
|
this.d = new C17656ygW(nestedScrollView, linearLayout, linearLayout2, button, customBillsToPay, textView, textView2, linearLayout3, linearLayout4, textView3, imageView, textView4, relativeLayout, customHorizontalProgressBar, textView5, nestedScrollView, textView6, textView7, circleIndicator, wrapContentViewPager, textView8, textView9);
|
||
|
C4078bPa c4078bPa2 = this.loanDetailPresenter;
|
||
|
if (c4078bPa2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c4078bPa2 = null;
|
||
|
}
|
||
|
c4078bPa2.e((C4078bPa) this);
|
||
|
u(getString(R.string.loan_detail_title));
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null && (intent = activity.getIntent()) != null) {
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
arrayList = intent.getParcelableArrayListExtra("LOAN_DISPLAY_LIST", C0385Fj.class);
|
||
|
} else {
|
||
|
arrayList = intent.getParcelableArrayListExtra("LOAN_DISPLAY_LIST");
|
||
|
}
|
||
|
i = intent.getIntExtra("SELECTED_LOAN_POSITION", 0);
|
||
|
}
|
||
|
C4078bPa c4078bPa3 = this.loanDetailPresenter;
|
||
|
if (c4078bPa3 != null) {
|
||
|
c4078bPa = c4078bPa3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
C14851gaI c14851gaI = arrayList;
|
||
|
if (c14851gaI == null) {
|
||
|
c14851gaI = C14851gaI.c;
|
||
|
}
|
||
|
final List<C0385Fj> d = C14881gav.d(c14851gaI);
|
||
|
C14957gcv.e(d, "");
|
||
|
c4078bPa.e = d;
|
||
|
if (c4078bPa.f != 0) {
|
||
|
ZI.IeS ieS = new ZI.IeS(d, i) { // from class: o.bPd
|
||
|
private List d;
|
||
|
private int e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C4078bPa.c(this.d, this.e, (InterfaceC6653cZL.LWm) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = d;
|
||
|
this.e = i;
|
||
|
}
|
||
|
};
|
||
|
if (c4078bPa.f != 0) {
|
||
|
ieS.e(c4078bPa.f);
|
||
|
}
|
||
|
}
|
||
|
C4042bOW c4042bOW = new C4042bOW(c4078bPa, i);
|
||
|
if (c4078bPa.f != 0) {
|
||
|
c4042bOW.e(c4078bPa.f);
|
||
|
}
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
NestedScrollView nestedScrollView2 = c17656ygW.s;
|
||
|
C14957gcv.c(nestedScrollView2, "");
|
||
|
return nestedScrollView2;
|
||
|
}
|
||
|
i2 = R.id.tvLoanDetailTenorLabel;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
c17656ygW.l.setOnClickListener(new View.OnClickListener(this) { // from class: o.fmt
|
||
|
private LoanDetailFragment d;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
LoanDetailFragment.d(this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
});
|
||
|
C17656ygW c17656ygW2 = this.d;
|
||
|
C14957gcv.e(c17656ygW2);
|
||
|
c17656ygW2.e.setOnClickListener(new View.OnClickListener(this) { // from class: o.fmq
|
||
|
private LoanDetailFragment a;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
LoanDetailFragment.a(this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroy() {
|
||
|
C4078bPa c4078bPa = this.loanDetailPresenter;
|
||
|
if (c4078bPa == null) {
|
||
|
C14957gcv.a("");
|
||
|
c4078bPa = null;
|
||
|
}
|
||
|
c4078bPa.w_();
|
||
|
this.d = null;
|
||
|
super.onDestroy();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void a(List<C0385Fj> list, int i) {
|
||
|
C14957gcv.e(list, "");
|
||
|
LoanDetailAdapter loanDetailAdapter = new LoanDetailAdapter(getContext(), list);
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
WrapContentViewPager wrapContentViewPager = c17656ygW.q;
|
||
|
wrapContentViewPager.setAdapter(loanDetailAdapter);
|
||
|
wrapContentViewPager.setClipToPadding(false);
|
||
|
wrapContentViewPager.setPadding(wrapContentViewPager.getResources().getDimensionPixelOffset(R.dimen.f28542131166620), 0, wrapContentViewPager.getResources().getDimensionPixelOffset(R.dimen.f28542131166620), 0);
|
||
|
wrapContentViewPager.setCurrentItem(i);
|
||
|
C17656ygW c17656ygW2 = this.d;
|
||
|
C14957gcv.e(c17656ygW2);
|
||
|
CircleIndicator circleIndicator = c17656ygW2.t;
|
||
|
C17656ygW c17656ygW3 = this.d;
|
||
|
C14957gcv.e(c17656ygW3);
|
||
|
circleIndicator.setViewPager(c17656ygW3.q);
|
||
|
C17656ygW c17656ygW4 = this.d;
|
||
|
C14957gcv.e(c17656ygW4);
|
||
|
CustomBillsToPay customBillsToPay = c17656ygW4.b;
|
||
|
C14957gcv.c(customBillsToPay, "");
|
||
|
CustomBillsToPay customBillsToPay2 = customBillsToPay;
|
||
|
C14957gcv.e(customBillsToPay2, "");
|
||
|
customBillsToPay2.setVisibility(0);
|
||
|
C17656ygW c17656ygW5 = this.d;
|
||
|
C14957gcv.e(c17656ygW5);
|
||
|
c17656ygW5.q.addOnPageChangeListener(this);
|
||
|
if (list.size() >= 10) {
|
||
|
C17656ygW c17656ygW6 = this.d;
|
||
|
C14957gcv.e(c17656ygW6);
|
||
|
CircleIndicator circleIndicator2 = c17656ygW6.t;
|
||
|
C14957gcv.c(circleIndicator2, "");
|
||
|
CircleIndicator circleIndicator3 = circleIndicator2;
|
||
|
C14957gcv.e(circleIndicator3, "");
|
||
|
circleIndicator3.setVisibility(8);
|
||
|
return;
|
||
|
}
|
||
|
C17656ygW c17656ygW7 = this.d;
|
||
|
C14957gcv.e(c17656ygW7);
|
||
|
CircleIndicator circleIndicator4 = c17656ygW7.t;
|
||
|
C14957gcv.c(circleIndicator4, "");
|
||
|
CircleIndicator circleIndicator5 = circleIndicator4;
|
||
|
C14957gcv.e(circleIndicator5, "");
|
||
|
circleIndicator5.setVisibility(0);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void e(String str, String str2, int i) {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar = c17656ygW.f9321o;
|
||
|
C14957gcv.c(customHorizontalProgressBar, "");
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar2 = customHorizontalProgressBar;
|
||
|
C14957gcv.e(customHorizontalProgressBar2, "");
|
||
|
customHorizontalProgressBar2.setVisibility(0);
|
||
|
customHorizontalProgressBar.setUsedValue(str2);
|
||
|
customHorizontalProgressBar.setAvailableValue(str);
|
||
|
customHorizontalProgressBar.setProgressBar(i);
|
||
|
customHorizontalProgressBar.mTotalContainerLinearLayout.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void b(final C0385Fj c0385Fj) {
|
||
|
if (c0385Fj == null) {
|
||
|
return;
|
||
|
}
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
CustomBillsToPay customBillsToPay = c17656ygW.b;
|
||
|
customBillsToPay.setDueDate(c0385Fj.J);
|
||
|
customBillsToPay.setAmountTitle(getString(R.string.amount_due));
|
||
|
customBillsToPay.setAmountValue(c0385Fj.M);
|
||
|
customBillsToPay.setIconDrawable(c0385Fj.a, c0385Fj.r);
|
||
|
customBillsToPay.setPayButtonVisibility(0);
|
||
|
customBillsToPay.setOnCustomBillsToPayClickListener(new InterfaceC12843fIr(this, c0385Fj) { // from class: o.fmr
|
||
|
private C0385Fj b;
|
||
|
private LoanDetailFragment d;
|
||
|
|
||
|
@Override // o.InterfaceC12843fIr
|
||
|
public final void c() {
|
||
|
LoanDetailFragment.a(this.d, this.b);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
this.b = c0385Fj;
|
||
|
}
|
||
|
});
|
||
|
customBillsToPay.setAmountTitleTextVisibility(0);
|
||
|
customBillsToPay.setAmountVisibility(0);
|
||
|
customBillsToPay.setDueDateVisibility(0);
|
||
|
customBillsToPay.setCompletedTextVisibility(8);
|
||
|
C17656ygW c17656ygW2 = this.d;
|
||
|
C14957gcv.e(c17656ygW2);
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar = c17656ygW2.f9321o;
|
||
|
customHorizontalProgressBar.setUsedTitle(c0385Fj.C);
|
||
|
customHorizontalProgressBar.setAvailableTitle(c0385Fj.W);
|
||
|
final C4078bPa c4078bPa = this.loanDetailPresenter;
|
||
|
if (c4078bPa == null) {
|
||
|
C14957gcv.a("");
|
||
|
c4078bPa = null;
|
||
|
}
|
||
|
C14957gcv.e(c0385Fj, "");
|
||
|
ZI.IeS ieS = new ZI.IeS(c0385Fj, c4078bPa) { // from class: o.bOX
|
||
|
private C4078bPa a;
|
||
|
private C0385Fj d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C4078bPa.d(this.d, this.a, (InterfaceC6653cZL.LWm) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = c0385Fj;
|
||
|
this.a = c4078bPa;
|
||
|
}
|
||
|
};
|
||
|
if (c4078bPa.f != 0) {
|
||
|
ieS.e(c4078bPa.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void c(String str, String str2, int i) {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
LinearLayout linearLayout = c17656ygW.g;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(0);
|
||
|
C17656ygW c17656ygW2 = this.d;
|
||
|
C14957gcv.e(c17656ygW2);
|
||
|
LinearLayout linearLayout3 = c17656ygW2.h;
|
||
|
C14957gcv.c(linearLayout3, "");
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(8);
|
||
|
C17656ygW c17656ygW3 = this.d;
|
||
|
C14957gcv.e(c17656ygW3);
|
||
|
CustomBillsToPay customBillsToPay = c17656ygW3.b;
|
||
|
customBillsToPay.setIconDrawable(str2, i);
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
customBillsToPay.setCompletedText(str);
|
||
|
customBillsToPay.setPayButtonVisibility(8);
|
||
|
customBillsToPay.setAmountTitleTextVisibility(8);
|
||
|
customBillsToPay.setAmountVisibility(8);
|
||
|
customBillsToPay.setDueDateVisibility(8);
|
||
|
customBillsToPay.setCompletedTextVisibility(0);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void c(C0385Fj c0385Fj) {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
LinearLayout linearLayout = c17656ygW.g;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(8);
|
||
|
C17656ygW c17656ygW2 = this.d;
|
||
|
C14957gcv.e(c17656ygW2);
|
||
|
LinearLayout linearLayout3 = c17656ygW2.h;
|
||
|
C14957gcv.c(linearLayout3, "");
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(8);
|
||
|
C17656ygW c17656ygW3 = this.d;
|
||
|
C14957gcv.e(c17656ygW3);
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar = c17656ygW3.f9321o;
|
||
|
C14957gcv.c(customHorizontalProgressBar, "");
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar2 = customHorizontalProgressBar;
|
||
|
C14957gcv.e(customHorizontalProgressBar2, "");
|
||
|
customHorizontalProgressBar2.setVisibility(0);
|
||
|
customHorizontalProgressBar.setUsedTitle(c0385Fj != null ? c0385Fj.C : null);
|
||
|
customHorizontalProgressBar.setAvailableTitle(c0385Fj != null ? c0385Fj.W : null);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void e() {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
Button button = c17656ygW.e;
|
||
|
C14957gcv.c(button, "");
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(0);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void b() {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
LinearLayout linearLayout = c17656ygW.g;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(8);
|
||
|
LinearLayout linearLayout3 = c17656ygW.h;
|
||
|
C14957gcv.c(linearLayout3, "");
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(8);
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar = c17656ygW.f9321o;
|
||
|
C14957gcv.c(customHorizontalProgressBar, "");
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar2 = customHorizontalProgressBar;
|
||
|
C14957gcv.e(customHorizontalProgressBar2, "");
|
||
|
customHorizontalProgressBar2.setVisibility(8);
|
||
|
Button button = c17656ygW.e;
|
||
|
C14957gcv.c(button, "");
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void e(C0385Fj c0385Fj) {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
LinearLayout linearLayout = c17656ygW.g;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(8);
|
||
|
Button button = c17656ygW.e;
|
||
|
C14957gcv.c(button, "");
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(8);
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar = c17656ygW.f9321o;
|
||
|
C14957gcv.c(customHorizontalProgressBar, "");
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar2 = customHorizontalProgressBar;
|
||
|
C14957gcv.e(customHorizontalProgressBar2, "");
|
||
|
customHorizontalProgressBar2.setVisibility(8);
|
||
|
LinearLayout linearLayout3 = c17656ygW.h;
|
||
|
C14957gcv.c(linearLayout3, "");
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(0);
|
||
|
c17656ygW.n.setText(c0385Fj != null ? c0385Fj.w : null);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void d() {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
LinearLayout linearLayout = c17656ygW.g;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(0);
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar = c17656ygW.f9321o;
|
||
|
C14957gcv.c(customHorizontalProgressBar, "");
|
||
|
CustomHorizontalProgressBar customHorizontalProgressBar2 = customHorizontalProgressBar;
|
||
|
C14957gcv.e(customHorizontalProgressBar2, "");
|
||
|
customHorizontalProgressBar2.setVisibility(0);
|
||
|
LinearLayout linearLayout3 = c17656ygW.h;
|
||
|
C14957gcv.c(linearLayout3, "");
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(8);
|
||
|
Button button = c17656ygW.e;
|
||
|
C14957gcv.c(button, "");
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void d(C0385Fj c0385Fj) {
|
||
|
if (c0385Fj == null) {
|
||
|
return;
|
||
|
}
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
c17656ygW.i.setText(c0385Fj.c);
|
||
|
c17656ygW.r.setText(c0385Fj.v);
|
||
|
c17656ygW.d.setText(c0385Fj.g);
|
||
|
c17656ygW.c.setText(c0385Fj.n);
|
||
|
c17656ygW.k.setText(c0385Fj.Q);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void a() {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
TextView textView = c17656ygW.f;
|
||
|
C14957gcv.c(textView, "");
|
||
|
TextView textView2 = textView;
|
||
|
C14957gcv.e(textView2, "");
|
||
|
textView2.setVisibility(8);
|
||
|
TextView textView3 = c17656ygW.p;
|
||
|
C14957gcv.c(textView3, "");
|
||
|
TextView textView4 = textView3;
|
||
|
C14957gcv.e(textView4, "");
|
||
|
textView4.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void a(String str) {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
TextView textView = c17656ygW.f;
|
||
|
textView.setText(str);
|
||
|
C14957gcv.c(textView, "");
|
||
|
TextView textView2 = textView;
|
||
|
C14957gcv.e(textView2, "");
|
||
|
textView2.setVisibility(0);
|
||
|
TextView textView3 = c17656ygW.p;
|
||
|
C14957gcv.c(textView3, "");
|
||
|
TextView textView4 = textView3;
|
||
|
C14957gcv.e(textView4, "");
|
||
|
textView4.setVisibility(0);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void a(int i) {
|
||
|
C17656ygW c17656ygW = this.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
c17656ygW.w.setText(getString(i));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void d(String str) {
|
||
|
C14831gS c14831gS = C14831gS.d;
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(C14831gS.d(str))));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void e(String str) {
|
||
|
try {
|
||
|
startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str)));
|
||
|
} catch (ActivityNotFoundException e) {
|
||
|
guQ.e(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.viewpager.widget.ViewPager.ojQ
|
||
|
public final void onPageSelected(int i) {
|
||
|
C4078bPa c4078bPa = this.loanDetailPresenter;
|
||
|
if (c4078bPa == null) {
|
||
|
C14957gcv.a("");
|
||
|
c4078bPa = null;
|
||
|
}
|
||
|
C4042bOW c4042bOW = new C4042bOW(c4078bPa, i);
|
||
|
if (c4078bPa.f != 0) {
|
||
|
c4042bOW.e(c4078bPa.f);
|
||
|
}
|
||
|
c4078bPa.d = i;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class HBt {
|
||
|
private HBt() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ HBt(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(LoanDetailFragment loanDetailFragment) {
|
||
|
C14957gcv.e(loanDetailFragment, "");
|
||
|
C17656ygW c17656ygW = loanDetailFragment.d;
|
||
|
C14957gcv.e(c17656ygW);
|
||
|
fJM.b(c17656ygW.j);
|
||
|
C17656ygW c17656ygW2 = loanDetailFragment.d;
|
||
|
C14957gcv.e(c17656ygW2);
|
||
|
LinearLayout linearLayout = c17656ygW2.a;
|
||
|
C14957gcv.c(linearLayout, "");
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
if (linearLayout2.getVisibility() != 0) {
|
||
|
fJM.e(linearLayout2);
|
||
|
C17656ygW c17656ygW3 = loanDetailFragment.d;
|
||
|
C14957gcv.e(c17656ygW3);
|
||
|
NestedScrollView nestedScrollView = c17656ygW3.m;
|
||
|
int measuredHeight = (int) ((linearLayout.getMeasuredHeight() << 1) / loanDetailFragment.requireContext().getResources().getDisplayMetrics().density);
|
||
|
ObjectAnimator ofInt = ObjectAnimator.ofInt(nestedScrollView, "scrollY", nestedScrollView.getBottom());
|
||
|
ofInt.setDuration(measuredHeight);
|
||
|
ofInt.start();
|
||
|
return;
|
||
|
}
|
||
|
fJM.d(linearLayout2);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(LoanDetailFragment loanDetailFragment, final C0385Fj c0385Fj) {
|
||
|
C14957gcv.e(loanDetailFragment, "");
|
||
|
C4078bPa c4078bPa = loanDetailFragment.loanDetailPresenter;
|
||
|
if (c4078bPa == null) {
|
||
|
C14957gcv.a("");
|
||
|
c4078bPa = null;
|
||
|
}
|
||
|
C14957gcv.e(c0385Fj, "");
|
||
|
ZI.IeS ieS = new ZI.IeS(c0385Fj) { // from class: o.bOY
|
||
|
private C0385Fj b;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C4078bPa.e(this.b, (InterfaceC6653cZL.LWm) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = c0385Fj;
|
||
|
}
|
||
|
};
|
||
|
if (c4078bPa.f != 0) {
|
||
|
ieS.e(c4078bPa.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(LoanDetailFragment loanDetailFragment) {
|
||
|
C14957gcv.e(loanDetailFragment, "");
|
||
|
loanDetailFragment.v("lvl_accountsummary_loandetails_levelup");
|
||
|
final C4078bPa c4078bPa = loanDetailFragment.loanDetailPresenter;
|
||
|
if (c4078bPa == null) {
|
||
|
C14957gcv.a("");
|
||
|
c4078bPa = null;
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS(c4078bPa) { // from class: o.bPf
|
||
|
private C4078bPa b;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C4078bPa.d(this.b, (InterfaceC6653cZL.LWm) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = c4078bPa;
|
||
|
}
|
||
|
};
|
||
|
if (c4078bPa.f != 0) {
|
||
|
ieS.e(c4078bPa.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6653cZL.LWm
|
||
|
public final void a(C0385Fj c0385Fj) {
|
||
|
String str = c0385Fj != null ? c0385Fj.y : null;
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
if (str.length() > 0) {
|
||
|
c("loan_paybutton", new pug("loanproduct", str));
|
||
|
}
|
||
|
LoanInputActivity.IeS ieS = LoanInputActivity.l;
|
||
|
Context requireContext = requireContext();
|
||
|
C14957gcv.c(requireContext, "");
|
||
|
C14957gcv.e(requireContext, "");
|
||
|
Intent intent = new Intent(requireContext, (Class<?>) LoanInputActivity.class);
|
||
|
intent.putExtra("com.scb.phone.EXTRA_LOAN_DISPLAY", c0385Fj);
|
||
|
requireContext.startActivity(intent);
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new HBt((byte) 0);
|
||
|
}
|
||
|
}
|