what-the-bank/sources/com/scb/phone/view/fragment/easycash/EasycashBaseReviewFragment....

144 lines
4.8 KiB
Java

package com.scb.phone.view.fragment.easycash;
import android.content.Context;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import com.scb.phone.R;
import com.scb.phone.view.activity.easycash.EasycashCreditPowerInputActivity;
import com.scb.phone.view.activity.easycash.EasycashLandingActivity;
import com.scb.phone.view.custom.easycash.CustomEasyCashSectionLabel;
import com.scb.phone.view.custom.easycash.CustomSeparatedViews;
import com.scb.phone.view.fragment.easycash.EasycashSuccessDialogFragment;
import com.scb.phone.view.fragment.etb.BreadcrumbFragment;
import o.C0596Kg;
import o.C0613Kq;
import o.C14957gcv;
import o.InterfaceC6621cYR;
import o.nMh;
/* loaded from: classes5.dex */
public abstract class EasycashBaseReviewFragment extends BreadcrumbFragment implements InterfaceC6621cYR.Heg, EasycashSuccessDialogFragment.HBt {
@BindView
public Button btnSubmit;
@BindView
public TextView disclaimerDescription;
@BindView
public CustomEasyCashSectionLabel disclaimerHeader;
@BindView
public LinearLayout sectionLayout;
@Override // o.InterfaceC9713dpA.HBt
public final boolean p() {
return true;
}
@Override // o.InterfaceC9713dpA.HBt
public final int t() {
return 3;
}
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
@Override // o.InterfaceC9713dpA.HBt
public final String q() {
String string = getString(R.string.review_title);
C14957gcv.c((Object) string, "");
return string;
}
@Override // o.InterfaceC6621cYR.Heg
public final void b(C0613Kq c0613Kq, int i) {
C14957gcv.e(c0613Kq, "");
CustomEasyCashSectionLabel customEasyCashSectionLabel = new CustomEasyCashSectionLabel(getContext());
customEasyCashSectionLabel.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
customEasyCashSectionLabel.setVisibility(0);
customEasyCashSectionLabel.setText(c0613Kq.a);
Context context = customEasyCashSectionLabel.getContext();
if (context != null) {
C14957gcv.c(context, "");
customEasyCashSectionLabel.setBackgroundColor(nMh.getColor(context, R.color.f3032131099810));
}
CustomSeparatedViews customSeparatedViews = new CustomSeparatedViews(getContext());
customSeparatedViews.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
customSeparatedViews.e(c0613Kq.d, R.layout.2131559336);
LinearLayout linearLayout = this.sectionLayout;
LinearLayout linearLayout2 = null;
if (linearLayout == null) {
C14957gcv.a("");
linearLayout = null;
}
linearLayout.addView(customEasyCashSectionLabel);
LinearLayout linearLayout3 = this.sectionLayout;
if (linearLayout3 != null) {
linearLayout2 = linearLayout3;
} else {
C14957gcv.a("");
}
linearLayout2.addView(customSeparatedViews);
}
@Override // o.InterfaceC6621cYR.Heg
public final void c(String str, String str2) {
CustomEasyCashSectionLabel customEasyCashSectionLabel = this.disclaimerHeader;
TextView textView = null;
if (customEasyCashSectionLabel == null) {
C14957gcv.a("");
customEasyCashSectionLabel = null;
}
customEasyCashSectionLabel.setVisibility(0);
CustomEasyCashSectionLabel customEasyCashSectionLabel2 = this.disclaimerHeader;
if (customEasyCashSectionLabel2 == null) {
C14957gcv.a("");
customEasyCashSectionLabel2 = null;
}
customEasyCashSectionLabel2.setText(str);
TextView textView2 = this.disclaimerDescription;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setVisibility(0);
TextView textView3 = this.disclaimerDescription;
if (textView3 != null) {
textView = textView3;
} else {
C14957gcv.a("");
}
textView.setText(str2);
}
@Override // o.InterfaceC6621cYR.Heg
public final void e(C0596Kg c0596Kg) {
C14957gcv.e(c0596Kg, "");
EasycashSuccessDialogFragment.a(c0596Kg).show(getChildFragmentManager().a(), "dialog");
}
@Override // com.scb.phone.view.fragment.easycash.EasycashSuccessDialogFragment.HBt
public final void aW_() {
startActivity(EasycashCreditPowerInputActivity.aep_(getContext()));
}
@Override // o.InterfaceC6621cYR.Heg
public final void c() {
EasycashLandingActivity.c(getContext());
}
static {
new Sts((byte) 0);
}
}