106 lines
3.3 KiB
Java
106 lines
3.3 KiB
Java
package com.scb.phone.view.fragment.registration.preregistration;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.OnClick;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.BaseActivity;
|
|
import com.scb.phone.view.activity.registration.preregistration.PreregistrationInformationActivity;
|
|
import java.util.Locale;
|
|
import o.C16565pPd;
|
|
import o.C5858cBf;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC9609dmv;
|
|
import o.UUJ;
|
|
import o.ZI;
|
|
import o.xUo;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class PreregistrationLandingFragment extends Hilt_PreregistrationLandingFragment implements InterfaceC9609dmv {
|
|
private UUJ c;
|
|
private C16565pPd d = new C16565pPd();
|
|
|
|
@InterfaceC13391fZD
|
|
public C5858cBf presenter;
|
|
|
|
@InterfaceC13391fZD
|
|
public SharedPreferences sharedPreferences;
|
|
|
|
public static PreregistrationLandingFragment f() {
|
|
Bundle bundle = new Bundle();
|
|
PreregistrationLandingFragment preregistrationLandingFragment = new PreregistrationLandingFragment();
|
|
preregistrationLandingFragment.setArguments(bundle);
|
|
return preregistrationLandingFragment;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
View inflate = layoutInflater.inflate(R.layout.2131559830, viewGroup, false);
|
|
ButterKnife.c(this, inflate);
|
|
this.presenter.e((C5858cBf) this);
|
|
this.c = new UUJ(getActivity());
|
|
C16565pPd c16565pPd = this.d;
|
|
if (getActivity() != null) {
|
|
c16565pPd.c(((BaseActivity) getActivity()).scbAnalytics, "registration_welcome");
|
|
}
|
|
return inflate;
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onDestroy() {
|
|
super.onDestroy();
|
|
this.presenter.w_();
|
|
}
|
|
|
|
@Override // o.InterfaceC9609dmv
|
|
public final void d(String str) {
|
|
Locale locale = new Locale(W());
|
|
Locale locale2 = new Locale(str);
|
|
if (locale.equals(locale2)) {
|
|
return;
|
|
}
|
|
if (!str.trim().isEmpty()) {
|
|
this.sharedPreferences.edit().putString("com.scb.phone.pref.key.LANGUAGE", str).apply();
|
|
}
|
|
this.c.a(locale2.getLanguage());
|
|
xUo.d(locale2.getLanguage());
|
|
}
|
|
|
|
@Override // o.InterfaceC9609dmv
|
|
public final void d() {
|
|
PreregistrationInformationActivity.c(getContext());
|
|
}
|
|
|
|
@OnClick
|
|
public void onEnglishButtonClick() {
|
|
C5858cBf c5858cBf = this.presenter;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.cBm
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C5858cBf.b((InterfaceC9609dmv) obj);
|
|
}
|
|
};
|
|
if (c5858cBf.f != 0) {
|
|
ieS.e(c5858cBf.f);
|
|
}
|
|
}
|
|
|
|
@OnClick
|
|
public void onThaiButtonClick() {
|
|
C5858cBf c5858cBf = this.presenter;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.cBj
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C5858cBf.a((InterfaceC9609dmv) obj);
|
|
}
|
|
};
|
|
if (c5858cBf.f != 0) {
|
|
ieS.e(c5858cBf.f);
|
|
}
|
|
}
|
|
}
|