what-the-bank/sources/com/scb/phone/view/fragment/transferandpay/NewTransactionFragment.java

109 lines
3.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.transferandpay;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.google.android.material.tabs.TabLayout;
import com.scb.phone.R;
import com.scb.phone.view.custom.common.NoSwipeViewPager;
import o.C12495ezL;
import o.C12891fKc;
import o.C2207aaJ;
import o.InterfaceC13391fZD;
import o.InterfaceC9010dbe;
import o.ZI;
/* loaded from: classes5.dex */
public class NewTransactionFragment extends Hilt_NewTransactionFragment implements ViewTreeObserver.OnGlobalLayoutListener, InterfaceC9010dbe.Plv {
@BindView
ImageView mOverlayNewTransfer;
@BindView
RelativeLayout mRootView;
@BindView
TabLayout mTabLayout;
@BindView
NoSwipeViewPager mTabPager;
@BindView
LinearLayout mTutorialContainer;
@InterfaceC13391fZD
public C2207aaJ newTransactionPresenter;
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559788, viewGroup, false);
ButterKnife.c(this, inflate);
this.newTransactionPresenter.e((C2207aaJ) this);
super.aa();
Y();
u(getString(R.string.transfer_pay_title));
C12495ezL c12495ezL = new C12495ezL(getChildFragmentManager(), getContext());
this.mTabPager.setPagingEnabled(false);
this.mTabPager.setOffscreenPageLimit(2);
this.mTabPager.setAdapter(c12495ezL);
this.mTabLayout.setupWithViewPager(this.mTabPager);
this.mRootView.getViewTreeObserver().addOnGlobalLayoutListener(this);
return inflate;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
this.newTransactionPresenter.w_();
super.onDestroy();
}
@Override // com.scb.phone.view.fragment.BaseFragment
public final void aa() {
super.aa();
Y();
u(getString(R.string.transfer_pay_title));
}
/* JADX INFO: Access modifiers changed from: package-private */
@OnClick
public void onTutorialClicked() {
this.mOverlayNewTransfer.setVisibility(8);
this.mTutorialContainer.setVisibility(8);
this.mTabPager.setVisibility(0);
}
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
public void onGlobalLayout() {
this.mRootView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
C2207aaJ c2207aaJ = this.newTransactionPresenter;
if (c2207aaJ.a.e.i()) {
return;
}
c2207aaJ.a.e.w();
ZI.IeS ieS = new ZI.IeS() { // from class: o.aaI
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9010dbe.Plv) obj).e();
}
};
if (c2207aaJ.f != 0) {
ieS.e(c2207aaJ.f);
}
}
@Override // o.InterfaceC9010dbe.Plv
public final void e() {
C12891fKc.azI_(getContext(), this.mRootView, this.mOverlayNewTransfer);
this.mTutorialContainer.setVisibility(0);
this.mTabPager.setVisibility(4);
}
}