896 lines
30 KiB
Java
896 lines
30 KiB
Java
package com.scb.phone.view.fragment.landingpage;
|
|
|
|
import android.animation.AnimatorSet;
|
|
import android.content.ActivityNotFoundException;
|
|
import android.content.Context;
|
|
import android.content.DialogInterface;
|
|
import android.content.Intent;
|
|
import android.content.IntentFilter;
|
|
import android.content.res.Resources;
|
|
import android.graphics.Bitmap;
|
|
import android.graphics.PorterDuff;
|
|
import android.graphics.PorterDuffColorFilter;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.location.LocationManager;
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
import android.os.Handler;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.TextView;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.OnClick;
|
|
import com.huawei.hms.support.api.entity.common.CommonConstant;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.BaseActivity;
|
|
import com.scb.phone.view.activity.HomeActivity;
|
|
import com.scb.phone.view.activity.PreLoadCheckActivity;
|
|
import com.scb.phone.view.activity.bscanc.MyQRMenuActivity;
|
|
import com.scb.phone.view.activity.csent.PrivacyCSentWebViewActivity;
|
|
import com.scb.phone.view.activity.investment.InvestmentDetailsActivity;
|
|
import com.scb.phone.view.activity.investment.onboarding.FundOnboardingLandingActivity;
|
|
import com.scb.phone.view.activity.landingpage.LifestyleCustomizationActivity;
|
|
import com.scb.phone.view.activity.partner.PartnerAuthorizationActivity;
|
|
import com.scb.phone.view.activity.personalize.ShortcutRouterActivity;
|
|
import com.scb.phone.view.activity.prelogin.PinLoginActivity;
|
|
import com.scb.phone.view.adapter.landingpage.TileAdapter;
|
|
import com.scb.phone.view.custom.CustomDoubleCircleBorderView;
|
|
import com.scb.phone.view.custom.CustomProfileImageView;
|
|
import com.scb.phone.view.custom.common.CustomDialog;
|
|
import com.scb.phone.view.custom.common.CustomScrollView;
|
|
import com.scb.phone.view.fragment.BaseFragment;
|
|
import com.scb.phone.view.fragment.landingpage.LandingFragment;
|
|
import java.io.File;
|
|
import java.util.List;
|
|
import o.BKa;
|
|
import o.C0391Fn;
|
|
import o.C0690Mh;
|
|
import o.C0907Rf;
|
|
import o.C0914Rk;
|
|
import o.C0915Rl;
|
|
import o.C10965eUa;
|
|
import o.C11560ehe;
|
|
import o.C12891fKc;
|
|
import o.C12914fKz;
|
|
import o.C14105fms;
|
|
import o.C14107fmu;
|
|
import o.C14866gag;
|
|
import o.C14957gcv;
|
|
import o.C16903sI;
|
|
import o.C4015bNg;
|
|
import o.C6583cXR;
|
|
import o.Heg;
|
|
import o.InterfaceC0834Plv;
|
|
import o.InterfaceC1244Ytw;
|
|
import o.InterfaceC13027fOh;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC14894gbR;
|
|
import o.PRA;
|
|
import o.QX;
|
|
import o.RunnableC14099fmm;
|
|
import o.YKU;
|
|
import o.cZE;
|
|
import o.fSJ;
|
|
import o.fSQ;
|
|
import o.gHK;
|
|
import o.gjJ;
|
|
import o.glR;
|
|
import o.guQ;
|
|
import o.huo;
|
|
import o.nMh;
|
|
import o.pug;
|
|
import o.wxK;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class LandingFragment extends Hilt_LandingFragment implements cZE {
|
|
|
|
@BindView
|
|
CustomProfileImageView cusIvProfile;
|
|
public RVV d;
|
|
public IeS f;
|
|
|
|
@InterfaceC13391fZD
|
|
public File fileDir;
|
|
private boolean g;
|
|
private fSJ h;
|
|
|
|
@BindView
|
|
ImageView ivBgLanding;
|
|
private fSJ l;
|
|
|
|
@InterfaceC13391fZD
|
|
public C4015bNg landingPagePresenter;
|
|
|
|
@BindView
|
|
LinearLayout llLayoutHomeInsight;
|
|
|
|
@BindView
|
|
LinearLayout llLayoutHomeWelcomeDetail;
|
|
private huo<Intent> n;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private fSJ f8052o;
|
|
|
|
@BindView
|
|
ViewGroup qrCodeBeltButton;
|
|
|
|
@BindView
|
|
ViewGroup scanBeltButton;
|
|
|
|
@BindView
|
|
CustomScrollView scrollView;
|
|
|
|
@BindView
|
|
ImageView staticLoadingImageView;
|
|
|
|
@BindView
|
|
LinearLayout staticTapToRetry;
|
|
|
|
@BindView
|
|
TextView tvHomeCity;
|
|
|
|
@BindView
|
|
TextView tvHomeWelcomeHeadline;
|
|
|
|
@BindView
|
|
TextView tvHomeWelcomeHeadlineInsight;
|
|
|
|
@BindView
|
|
TextView tvHomeWelcomeInsight;
|
|
|
|
@BindView
|
|
TextView tvHomeWelcomeUserName;
|
|
|
|
@BindView
|
|
TextView tvPrivacyNotice;
|
|
private Handler j = new Handler();
|
|
private boolean i = false;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public interface IeS {
|
|
void J();
|
|
|
|
void K();
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public interface RVV {
|
|
void N();
|
|
}
|
|
|
|
@Override // o.InterfaceC12854fJL
|
|
public final void G() {
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
View inflate = layoutInflater.inflate(R.layout.2131559741, viewGroup, false);
|
|
((BaseFragment) this).a = ButterKnife.c(this, inflate);
|
|
((HomeActivity) getActivity()).k = true;
|
|
super.aa();
|
|
Z();
|
|
ab();
|
|
e(this.mRecyclerView, getActivity() instanceof HomeActivity ? ((HomeActivity) getActivity()).mRemoveTileLayout : null, new TileAdapter.ZqN(this) { // from class: o.flM
|
|
private LandingFragment c;
|
|
|
|
@Override // com.scb.phone.view.adapter.landingpage.TileAdapter.ZqN
|
|
public final void a(boolean z) {
|
|
this.c.scrollView.setEnableScrolling(z);
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
});
|
|
((BaseDragAndDropFragment) this).c.b(true);
|
|
this.landingPagePresenter.e((C4015bNg) this);
|
|
this.landingPagePresenter.s();
|
|
C4015bNg c4015bNg = this.landingPagePresenter;
|
|
C4015bNg.c(new Object[]{c4015bNg}, -1084042114, 1084042126, System.identityHashCode(c4015bNg));
|
|
this.l = glR.Ge_(getContext(), new IntentFilter("com.scb.phone/BROADCAST_PROFILE_UPDATED")).subscribe(new fSQ(this) { // from class: o.flN
|
|
private LandingFragment d;
|
|
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
LandingFragment.a(this.d);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
}, new fSQ() { // from class: o.flK
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
guQ.a((Throwable) obj);
|
|
}
|
|
});
|
|
this.f8052o = glR.Ge_(getContext(), new IntentFilter("com.scb.phone/BROADCAST_UPDATE_LOCATION")).subscribe(new fSQ(this) { // from class: o.flQ
|
|
private LandingFragment b;
|
|
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
this.b.N();
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
}, new fSQ() { // from class: o.flK
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
guQ.a((Throwable) obj);
|
|
}
|
|
});
|
|
this.h = glR.Ge_(getContext(), new IntentFilter("com.scb.phone/BROADCAST_ADD_TILE_TO_ROOT")).subscribe(new fSQ(this) { // from class: o.flU
|
|
private LandingFragment c;
|
|
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
this.c.landingPagePresenter.o();
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
}, new fSQ() { // from class: o.flK
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
guQ.a((Throwable) obj);
|
|
}
|
|
});
|
|
return inflate;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public void onViewCreated(View view, Bundle bundle) {
|
|
super.onViewCreated(view, bundle);
|
|
this.n = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.flF
|
|
private LandingFragment d;
|
|
|
|
@Override // o.InterfaceC0834Plv
|
|
public final void d(Object obj) {
|
|
LandingFragment.a(this.d, (Heg) obj);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void A() {
|
|
if (this.landingPagePresenter.a() && !this.landingPagePresenter.q()) {
|
|
InterfaceC13027fOh interfaceC13027fOh = new InterfaceC13027fOh(this) { // from class: com.scb.phone.view.fragment.landingpage.LandingFragment.3
|
|
private LandingFragment b;
|
|
|
|
@Override // o.InterfaceC13027fOh
|
|
public final void aBC_(Drawable drawable) {
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
|
|
@Override // o.InterfaceC13027fOh
|
|
public final void aBB_(Bitmap bitmap) {
|
|
if (this.b.ivBgLanding != null) {
|
|
this.b.ivBgLanding.setImageBitmap(bitmap);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13027fOh
|
|
public final void aBA_(Drawable drawable) {
|
|
if (this.b.ivBgLanding != null) {
|
|
this.b.ivBgLanding.setImageResource(R.drawable.landing_page_header);
|
|
}
|
|
}
|
|
};
|
|
this.ivBgLanding.setTag(interfaceC13027fOh);
|
|
C12891fKc.c(this.landingPagePresenter.a(BKa.BG_LANDING_BELT), interfaceC13027fOh);
|
|
}
|
|
this.cusIvProfile.setOnClickListener(new View.OnClickListener(this) { // from class: o.flY
|
|
private LandingFragment e;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
LandingFragment.e(this.e);
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onActivityCreated(Bundle bundle) {
|
|
super.onActivityCreated(bundle);
|
|
this.landingPagePresenter.h();
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public void onResume() {
|
|
super.onResume();
|
|
this.landingPagePresenter.l();
|
|
N();
|
|
this.g = false;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public void onStop() {
|
|
super.onStop();
|
|
CustomDoubleCircleBorderView customDoubleCircleBorderView = this.cusIvProfile.vBorder;
|
|
if (customDoubleCircleBorderView == null) {
|
|
C14957gcv.a("");
|
|
customDoubleCircleBorderView = null;
|
|
}
|
|
AnimatorSet animatorSet = customDoubleCircleBorderView.b;
|
|
if (animatorSet != null) {
|
|
animatorSet.cancel();
|
|
}
|
|
customDoubleCircleBorderView.d = 0L;
|
|
customDoubleCircleBorderView.e = -45.0f;
|
|
customDoubleCircleBorderView.a = -360.0f;
|
|
customDoubleCircleBorderView.e();
|
|
customDoubleCircleBorderView.invalidate();
|
|
this.landingPagePresenter.b(this.cusIvProfile.d);
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment, com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onDestroyView() {
|
|
super.onDestroyView();
|
|
this.j.removeCallbacksAndMessages(null);
|
|
this.n.e();
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onDestroy() {
|
|
fSJ fsj = this.l;
|
|
if (fsj != null && !fsj.isDisposed()) {
|
|
this.l.dispose();
|
|
}
|
|
fSJ fsj2 = this.f8052o;
|
|
if (fsj2 != null && !fsj2.isDisposed()) {
|
|
this.f8052o.dispose();
|
|
}
|
|
fSJ fsj3 = this.h;
|
|
if (fsj3 != null && !fsj3.isDisposed()) {
|
|
this.h.dispose();
|
|
}
|
|
this.landingPagePresenter.w_();
|
|
super.onDestroy();
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment
|
|
public final void aa() {
|
|
super.aa();
|
|
Z();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void N() {
|
|
LocationManager locationManager = (LocationManager) getActivity().getSystemService("location");
|
|
if (getContext() != null && nMh.checkSelfPermission(getContext(), "android.permission.ACCESS_FINE_LOCATION") == 0 && locationManager.isProviderEnabled("gps")) {
|
|
this.landingPagePresenter.d();
|
|
}
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void D() {
|
|
this.f.J();
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void a(String str) {
|
|
this.tvHomeCity.setText(str);
|
|
this.tvHomeCity.setVisibility(str.isEmpty() ? 4 : 0);
|
|
if (gHK.JURISTIC.equals(getActivity() instanceof PreLoadCheckActivity ? ((PreLoadCheckActivity) getActivity()).al() : null)) {
|
|
for (Drawable drawable : this.tvHomeCity.getCompoundDrawables()) {
|
|
if (drawable != null && getContext() != null) {
|
|
drawable.setColorFilter(new PorterDuffColorFilter(nMh.getColor(getContext(), R.color.f14042131100912), PorterDuff.Mode.SRC_IN));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void b(long j, int i) {
|
|
super.c(j, false, i);
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void H() {
|
|
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.auto_save_dialog_title).d(R.string.auto_save_dialog_text).aoT_(R.string.auto_save_dialog_go_settings, new DialogInterface.OnClickListener(this) { // from class: o.flL
|
|
private LandingFragment e;
|
|
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
LandingFragment.avo_(this.e, dialogInterface);
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
}), Integer.valueOf(R.string.auto_save_dialog_cancel), new DialogInterface.OnClickListener() { // from class: o.flP
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
dialogInterface.dismiss();
|
|
}
|
|
}})).show();
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void c(int i) {
|
|
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.auto_save_dialog_title).d(i).aoT_(R.string.auto_save_dialog_go_settings, new DialogInterface.OnClickListener(this) { // from class: o.flI
|
|
private LandingFragment d;
|
|
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i2) {
|
|
LandingFragment.avn_(this.d, dialogInterface);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
}), Integer.valueOf(R.string.auto_save_dialog_cancel), new DialogInterface.OnClickListener() { // from class: o.flT
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i2) {
|
|
dialogInterface.dismiss();
|
|
}
|
|
}})).show();
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void d(List<C0914Rk> list) {
|
|
startActivityForResult(LifestyleCustomizationActivity.ahZ_(getActivity(), list), 3334);
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void z() {
|
|
startActivity((Intent) LifestyleCustomizationActivity.e(new Object[]{getActivity()}, -1823246171, 1823246172, (int) System.currentTimeMillis()));
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void be_() {
|
|
startActivity(new Intent(getContext(), (Class<?>) FundOnboardingLandingActivity.class));
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void M() {
|
|
startActivity(new Intent(getContext(), (Class<?>) InvestmentDetailsActivity.class));
|
|
}
|
|
|
|
@Override // o.InterfaceC6633cYk
|
|
public final void b(C0907Rf.Sts sts) {
|
|
if (this.g) {
|
|
return;
|
|
}
|
|
this.g = true;
|
|
ShortcutRouterActivity.d(this, sts);
|
|
}
|
|
|
|
@Override // o.InterfaceC6633cYk
|
|
public final void j() {
|
|
if (getActivity() instanceof BaseActivity) {
|
|
BaseActivity baseActivity = (BaseActivity) getActivity();
|
|
if (!baseActivity.X() || baseActivity.z_()) {
|
|
super.startActivityForResult((Intent) PinLoginActivity.c(new Object[]{getContext()}, -1569431463, 1569431470, (int) System.currentTimeMillis()), 5004);
|
|
((BaseActivity) getActivity()).ae();
|
|
} else {
|
|
this.landingPagePresenter.k();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC6633cYk
|
|
public final void f() {
|
|
startActivity(MyQRMenuActivity.YK_(getContext()));
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onActivityResult(int i, int i2, Intent intent) {
|
|
if (i == 5004 && i2 == -1) {
|
|
this.landingPagePresenter.k();
|
|
return;
|
|
}
|
|
if (i == 3334 && i2 == -1 && intent != null && intent.hasExtra("EXTRA_STATIC_TILES")) {
|
|
this.landingPagePresenter.c(intent.getParcelableArrayListExtra("EXTRA_STATIC_TILES"));
|
|
} else {
|
|
super.onActivityResult(i, i2, intent);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC12854fJL
|
|
public final void d(long j) {
|
|
this.landingPagePresenter.d(j);
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment, o.InterfaceC12854fJL
|
|
public final void E() {
|
|
this.landingPagePresenter.o();
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment, o.InterfaceC12854fJL
|
|
public final void L() {
|
|
this.landingPagePresenter.m();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment
|
|
public final void e(long j) {
|
|
this.landingPagePresenter.b(j);
|
|
}
|
|
|
|
@Override // o.InterfaceC12854fJL
|
|
public final void d_(boolean z) {
|
|
Resources resources;
|
|
int i;
|
|
if (getActivity() instanceof HomeActivity) {
|
|
HomeActivity homeActivity = (HomeActivity) getActivity();
|
|
homeActivity.mTrashImageView.setColorFilter(nMh.getColor(homeActivity, z ? R.color.f3462131099854 : R.color.f14042131100912), PorterDuff.Mode.SRC_ATOP);
|
|
TextView textView = homeActivity.mRemoveTileTextView;
|
|
if (z) {
|
|
resources = homeActivity.getResources();
|
|
i = R.dimen.f28292131166595;
|
|
} else {
|
|
resources = homeActivity.getResources();
|
|
i = R.dimen.f28172131166583;
|
|
}
|
|
textView.setTextSize(2, resources.getDimensionPixelSize(i) / homeActivity.getResources().getDisplayMetrics().density);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC12854fJL
|
|
public final void e(final List<C0907Rf.Sts> list) {
|
|
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.confirm_delete_tile).d(R.string.confirm_delete_tile_description).aoT_(R.string.yes_delete, new DialogInterface.OnClickListener(this, list) { // from class: o.flV
|
|
private LandingFragment a;
|
|
private List b;
|
|
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
this.a.landingPagePresenter.e((List<C0907Rf.Sts>) this.b);
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
this.b = list;
|
|
}
|
|
}), Integer.valueOf(R.string.no_keep_it), new DialogInterface.OnClickListener() { // from class: o.flW
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
dialogInterface.dismiss();
|
|
}
|
|
}})).show();
|
|
}
|
|
|
|
@Override // o.InterfaceC12854fJL
|
|
public final void a(long j, long j2) {
|
|
this.landingPagePresenter.c(j, j2);
|
|
}
|
|
|
|
@Override // o.InterfaceC12854fJL
|
|
public final void e(C0907Rf.Sts sts) {
|
|
pug[] pugVarArr;
|
|
if (sts == null) {
|
|
return;
|
|
}
|
|
this.landingPagePresenter.c(sts);
|
|
if (sts.s != null) {
|
|
YKU yku = new YKU(sts.s);
|
|
List list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.fma
|
|
@Override // o.InterfaceC1244Ytw
|
|
public final Object d(Object obj) {
|
|
return LandingFragment.a((QX) obj);
|
|
}
|
|
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
|
|
pugVarArr = (pug[]) list.toArray(new pug[list.size()]);
|
|
} else {
|
|
pugVarArr = null;
|
|
}
|
|
if (pugVarArr == null) {
|
|
v(sts.p);
|
|
} else {
|
|
c(sts.p, pugVarArr);
|
|
}
|
|
try {
|
|
if (gjJ.a(sts.m)) {
|
|
startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(sts.m)));
|
|
}
|
|
} catch (Exception e) {
|
|
StringBuilder sb = new StringBuilder("Not able to open deeplink url: ");
|
|
sb.append(sts.m);
|
|
guQ.e(e, sb.toString(), new Object[0]);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ pug a(QX qx) {
|
|
return new pug(qx.d, qx.e);
|
|
}
|
|
|
|
@Override // o.InterfaceC12854fJL
|
|
public final void b_(List<C0907Rf.Sts> list) {
|
|
this.landingPagePresenter.b(list);
|
|
}
|
|
|
|
@Override // o.InterfaceC12854fJL
|
|
public final void aU_() {
|
|
v("tile_personalization_customize_button");
|
|
this.landingPagePresenter.f();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment
|
|
public final void c(long j, boolean z, int i) {
|
|
this.landingPagePresenter.c(j, z, i);
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment
|
|
protected final void a(long j, String str, boolean z) {
|
|
this.landingPagePresenter.a(j, str, z);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@OnClick
|
|
public void onQRBeltScanButtonClicked() {
|
|
if (!this.landingPagePresenter.c()) {
|
|
this.d.N();
|
|
this.landingPagePresenter.p();
|
|
} else {
|
|
this.landingPagePresenter.j();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@OnClick
|
|
public void onQRBeltCreateButtonClicked() {
|
|
C4015bNg c4015bNg = this.landingPagePresenter;
|
|
C4015bNg.c(new Object[]{c4015bNg}, 125778872, -125778867, System.identityHashCode(c4015bNg));
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment, o.InterfaceC6633cYk
|
|
public final void k() {
|
|
v("lifestyle_qr_belt_scan");
|
|
super.k();
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void bd_() {
|
|
this.mRecyclerView.post(new C14107fmu(this, this.mRecyclerView, this.staticLoadingImageView));
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void w() {
|
|
this.mRecyclerView.post(new RunnableC14099fmm(this.staticLoadingImageView, new InterfaceC14894gbR() { // from class: o.flZ
|
|
@Override // o.InterfaceC14894gbR
|
|
public final Object invoke(Object obj) {
|
|
return LandingFragment.e((View) obj);
|
|
}
|
|
}));
|
|
}
|
|
|
|
public static /* synthetic */ C14866gag e(View view) {
|
|
view.clearAnimation();
|
|
return C14866gag.c;
|
|
}
|
|
|
|
@OnClick
|
|
public void tapToRetryStatic() {
|
|
this.landingPagePresenter.m();
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void I() {
|
|
this.mRecyclerView.post(new C14105fms(this, this.mRecyclerView, this.staticTapToRetry));
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void s() {
|
|
this.mRecyclerView.post(new RunnableC14099fmm(this.staticTapToRetry));
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void B() {
|
|
if (this.f != null) {
|
|
this.mRecyclerView.post(new Runnable(this) { // from class: o.flS
|
|
private LandingFragment b;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
this.b.f.K();
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void F() {
|
|
C4015bNg c4015bNg = this.landingPagePresenter;
|
|
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
|
|
C16903sI c16903sI = c4015bNg.j;
|
|
c4015bNg.d(c16903sI.c((String) null, c16903sI.e(R.string.error_generic_resource), ieS));
|
|
}
|
|
|
|
@Override // o.InterfaceC6633cYk
|
|
public final void o() {
|
|
this.landingPagePresenter.o();
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment
|
|
public final void i(C0907Rf.Sts sts) {
|
|
this.landingPagePresenter.b(sts);
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void e(boolean z) {
|
|
((BaseDragAndDropFragment) this).c.b(z);
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void l() {
|
|
this.cusIvProfile.setBorderState(5);
|
|
this.cusIvProfile.setClickable(true);
|
|
this.i = false;
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void b(boolean z) {
|
|
this.cusIvProfile.setBorderState(z ? 3 : 2);
|
|
this.cusIvProfile.setClickable(true);
|
|
this.i = true;
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void b(String str) {
|
|
this.tvHomeWelcomeInsight.setText(str);
|
|
this.llLayoutHomeInsight.setVisibility(0);
|
|
this.llLayoutHomeWelcomeDetail.setVisibility(8);
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void c(boolean z) {
|
|
this.cusIvProfile.setBorderState(z ? 4 : 1);
|
|
this.cusIvProfile.setClickable(true);
|
|
this.i = false;
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void r() {
|
|
this.cusIvProfile.setClickable(false);
|
|
this.cusIvProfile.setBorderState(0);
|
|
this.i = false;
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void d(String str) {
|
|
this.tvPrivacyNotice.setVisibility(0);
|
|
C12914fKz.e(new Object[]{this.tvPrivacyNotice, str}, -2052661820, 2052661831, (int) System.currentTimeMillis());
|
|
this.tvPrivacyNotice.setMovementMethod(new C10965eUa(new C10965eUa.RVV(this) { // from class: o.flX
|
|
private LandingFragment c;
|
|
|
|
@Override // o.C10965eUa.RVV
|
|
public final boolean b(String str2) {
|
|
return LandingFragment.b(this.c, str2);
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
}));
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void e(String str) {
|
|
if (getContext() != null) {
|
|
startActivity(PrivacyCSentWebViewActivity.aaL_(getContext(), str));
|
|
v("privacy_notice_lifestyle_landing");
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void e(LandingFragment landingFragment) {
|
|
if (landingFragment.g || landingFragment.getContext() == null) {
|
|
return;
|
|
}
|
|
landingFragment.g = true;
|
|
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse("scbeasy://justforyou/entrypoint?source=lifestyle_landing"));
|
|
intent.putExtra("HAS_NEW_INSIGHT", landingFragment.i);
|
|
landingFragment.startActivity(intent);
|
|
}
|
|
|
|
public static /* synthetic */ void avn_(LandingFragment landingFragment, DialogInterface dialogInterface) {
|
|
if (landingFragment.getActivity() instanceof HomeActivity) {
|
|
((HomeActivity) landingFragment.getActivity()).mBottomNavigationView.setSelectedItemId(R.id.more_options_tab);
|
|
}
|
|
dialogInterface.dismiss();
|
|
}
|
|
|
|
public static /* synthetic */ void a(LandingFragment landingFragment) {
|
|
C4015bNg c4015bNg = landingFragment.landingPagePresenter;
|
|
if (c4015bNg != null) {
|
|
c4015bNg.i();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void a(LandingFragment landingFragment, Heg heg) {
|
|
if (heg.e == -1) {
|
|
Context requireContext = landingFragment.requireContext();
|
|
C4015bNg c4015bNg = landingFragment.landingPagePresenter;
|
|
landingFragment.startActivity(PartnerAuthorizationActivity.ajM_(requireContext, (String) C4015bNg.c(new Object[]{c4015bNg}, 1369754915, -1369754906, System.identityHashCode(c4015bNg))));
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ boolean b(LandingFragment landingFragment, String str) {
|
|
landingFragment.landingPagePresenter.d(str);
|
|
return true;
|
|
}
|
|
|
|
public static /* synthetic */ void avo_(LandingFragment landingFragment, DialogInterface dialogInterface) {
|
|
if (landingFragment.getActivity() instanceof HomeActivity) {
|
|
((HomeActivity) landingFragment.getActivity()).mBottomNavigationView.setSelectedItemId(R.id.more_options_tab);
|
|
}
|
|
dialogInterface.dismiss();
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void a(C0915Rl c0915Rl, long j) {
|
|
String str = c0915Rl.d;
|
|
try {
|
|
if (c0915Rl.d != null && !C6583cXR.t(str)) {
|
|
startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str)));
|
|
} else {
|
|
super.c(j, false, c0915Rl.f);
|
|
}
|
|
} catch (ActivityNotFoundException e) {
|
|
guQ.a(e);
|
|
super.c(j, false, c0915Rl.f);
|
|
}
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void c(String str) {
|
|
if ((getActivity() instanceof BaseActivity) && ((BaseActivity) getActivity()).X() && (!(getActivity() instanceof BaseActivity) || !((BaseActivity) getActivity()).z_())) {
|
|
startActivity(PartnerAuthorizationActivity.ajM_(requireContext(), str));
|
|
} else {
|
|
this.n.d((Intent) PinLoginActivity.c(new Object[]{requireContext()}, -1569431463, 1569431470, (int) System.currentTimeMillis()), null);
|
|
}
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment, o.InterfaceC12854fJL
|
|
public final void a(C0907Rf.Sts sts) {
|
|
if (this.landingPagePresenter.c(sts.i)) {
|
|
this.landingPagePresenter.t();
|
|
} else {
|
|
super.a(sts);
|
|
}
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.landingpage.BaseDragAndDropFragment
|
|
public final void d(C0907Rf.Sts sts) {
|
|
this.landingPagePresenter.e(sts.x);
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void b(C0391Fn c0391Fn) {
|
|
this.tvHomeWelcomeUserName.setVisibility((c0391Fn.h == null || c0391Fn.h.isEmpty()) ? 8 : 0);
|
|
this.tvHomeWelcomeUserName.setText(c0391Fn.h);
|
|
this.tvHomeWelcomeHeadline.setText(c0391Fn.c);
|
|
this.tvHomeWelcomeHeadlineInsight.setText(c0391Fn.c);
|
|
if (getContext() != null) {
|
|
this.cusIvProfile.setImageUrl(c0391Fn.b);
|
|
}
|
|
}
|
|
|
|
@Override // o.cZE
|
|
public final void C() {
|
|
startActivity(MyQRMenuActivity.YK_(getContext()));
|
|
}
|
|
}
|