185 lines
7.3 KiB
Java
185 lines
7.3 KiB
Java
|
package com.scb.phone.view.fragment.cardmanagement;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.Button;
|
||
|
import android.widget.ScrollView;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.cardmanagement.deejungtransfer.DeejungTermsAndConditionsActivity;
|
||
|
import com.scb.phone.view.fragment.cardmanagement.CCAboutFragment;
|
||
|
import o.C14957gcv;
|
||
|
import o.FZ;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC9002dbW;
|
||
|
import o.ZI;
|
||
|
import o.ZM;
|
||
|
import o.nea;
|
||
|
import o.qeC;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class CCAboutFragment extends Hilt_CCAboutFragment implements InterfaceC9002dbW.IeS {
|
||
|
private nea c;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public ZM presenter;
|
||
|
|
||
|
@Override // o.InterfaceC9002dbW.IeS
|
||
|
public final void b(String str) {
|
||
|
C14957gcv.e(str, "");
|
||
|
nea neaVar = this.c;
|
||
|
C14957gcv.e(neaVar);
|
||
|
neaVar.e.setText(str);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9002dbW.IeS
|
||
|
public final void a() {
|
||
|
nea neaVar = this.c;
|
||
|
C14957gcv.e(neaVar);
|
||
|
Button button = neaVar.c;
|
||
|
C14957gcv.c(button, "");
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9002dbW.IeS
|
||
|
public final void e() {
|
||
|
nea neaVar = this.c;
|
||
|
C14957gcv.e(neaVar);
|
||
|
Button button = neaVar.c;
|
||
|
C14957gcv.c(button, "");
|
||
|
Button button2 = button;
|
||
|
C14957gcv.e(button2, "");
|
||
|
button2.setVisibility(0);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroyView() {
|
||
|
this.c = null;
|
||
|
super.onDestroyView();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(CCAboutFragment cCAboutFragment) {
|
||
|
C14957gcv.e(cCAboutFragment, "");
|
||
|
FragmentActivity activity = cCAboutFragment.getActivity();
|
||
|
Intent intent = null;
|
||
|
ZM zm = null;
|
||
|
if (activity != null) {
|
||
|
DeejungTermsAndConditionsActivity.RVV rvv = DeejungTermsAndConditionsActivity.b;
|
||
|
FragmentActivity fragmentActivity = activity;
|
||
|
ZM zm2 = cCAboutFragment.presenter;
|
||
|
if (zm2 != null) {
|
||
|
zm = zm2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
String str = zm.c;
|
||
|
C14957gcv.e(fragmentActivity, "");
|
||
|
Intent intent2 = new Intent(fragmentActivity, (Class<?>) DeejungTermsAndConditionsActivity.class);
|
||
|
intent2.putExtra("EXTRA_DEEJUNG_TERMS_AND_CONDITIONS_URL", str);
|
||
|
intent = intent2;
|
||
|
}
|
||
|
cCAboutFragment.startActivity(intent);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
final FZ fz;
|
||
|
Intent intent;
|
||
|
Intent intent2;
|
||
|
Intent intent3;
|
||
|
Intent intent4;
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559489, viewGroup, false);
|
||
|
int i = R.id.btn_view_terms_and_conditions;
|
||
|
Button button = (Button) qeC.e(inflate, R.id.btn_view_terms_and_conditions);
|
||
|
if (button != null) {
|
||
|
i = R.id.txv_deejung_about;
|
||
|
TextView textView = (TextView) qeC.e(inflate, R.id.txv_deejung_about);
|
||
|
if (textView != null) {
|
||
|
this.c = new nea((ScrollView) inflate, button, textView);
|
||
|
ZM zm = this.presenter;
|
||
|
ZM zm2 = null;
|
||
|
if (zm == null) {
|
||
|
C14957gcv.a("");
|
||
|
zm = null;
|
||
|
}
|
||
|
zm.e((ZM) this);
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity == null || (intent4 = activity.getIntent()) == null) {
|
||
|
fz = null;
|
||
|
} else {
|
||
|
int intExtra = intent4.getIntExtra("com.scb.phone.view.activity.card_management.CCAboutActivity.KEY_EXTRA_ABOUT_TYPE", -1);
|
||
|
fz = intExtra >= 0 ? FZ.values()[intExtra] : null;
|
||
|
}
|
||
|
FragmentActivity activity2 = getActivity();
|
||
|
final String stringExtra = (activity2 == null || (intent3 = activity2.getIntent()) == null) ? null : intent3.getStringExtra("com.scb.phone.view.activity.card_management.CCAboutActivity.KEY_EXTRA_TERM_AND_CON");
|
||
|
FragmentActivity activity3 = getActivity();
|
||
|
String stringExtra2 = (activity3 == null || (intent2 = activity3.getIntent()) == null) ? null : intent2.getStringExtra("com.scb.phone.view.activity.card_management.CCAboutActivity.KEY_EXTRA_ABOUT");
|
||
|
final String str = stringExtra2 == null ? "" : stringExtra2;
|
||
|
FragmentActivity activity4 = getActivity();
|
||
|
final Boolean valueOf = (activity4 == null || (intent = activity4.getIntent()) == null) ? null : Boolean.valueOf(intent.getBooleanExtra("com.scb.phone.view.activity.card_management.CCAboutActivity.KEY_EXTRA_IS_FROM_DEEJUNG_TRANSFER", false));
|
||
|
if (fz != null) {
|
||
|
ZM zm3 = this.presenter;
|
||
|
if (zm3 != null) {
|
||
|
zm2 = zm3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
C14957gcv.e(fz, "");
|
||
|
C14957gcv.e(str, "");
|
||
|
final ZM zm4 = zm2;
|
||
|
ZI.IeS ieS = new ZI.IeS(stringExtra, zm4, valueOf, str, fz) { // from class: o.ZK
|
||
|
private ZM a;
|
||
|
private Boolean b;
|
||
|
private String c;
|
||
|
private String d;
|
||
|
private FZ e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
ZM.a(this.c, this.a, this.b, this.d, this.e, (InterfaceC9002dbW.IeS) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = stringExtra;
|
||
|
this.a = zm4;
|
||
|
this.b = valueOf;
|
||
|
this.d = str;
|
||
|
this.e = fz;
|
||
|
}
|
||
|
};
|
||
|
if (zm2.f != 0) {
|
||
|
ieS.e(zm2.f);
|
||
|
}
|
||
|
}
|
||
|
nea neaVar = this.c;
|
||
|
C14957gcv.e(neaVar);
|
||
|
neaVar.c.setOnClickListener(new View.OnClickListener(this) { // from class: o.eIO
|
||
|
private CCAboutFragment b;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
CCAboutFragment.d(this.b);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
nea neaVar2 = this.c;
|
||
|
C14957gcv.e(neaVar2);
|
||
|
ScrollView scrollView = neaVar2.d;
|
||
|
C14957gcv.c(scrollView, "");
|
||
|
return scrollView;
|
||
|
}
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
|
||
|
}
|
||
|
}
|