203 lines
7.2 KiB
Java
203 lines
7.2 KiB
Java
|
package com.scb.phone.view.fragment.bulktransfer;
|
||
|
|
||
|
import android.animation.Animator;
|
||
|
import android.content.Intent;
|
||
|
import android.content.IntentFilter;
|
||
|
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.RelativeLayout;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.bulktransfer.CreateRecipientGroupActivity;
|
||
|
import com.scb.phone.view.fragment.bulktransfer.BulkTransferEmptyFragment;
|
||
|
import o.C10457eEr;
|
||
|
import o.C12891fKc;
|
||
|
import o.C2688ajN;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC6636cYn;
|
||
|
import o.ZI;
|
||
|
import o.fSJ;
|
||
|
import o.fSQ;
|
||
|
import o.glR;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class BulkTransferEmptyFragment extends Hilt_BulkTransferEmptyFragment implements InterfaceC6636cYn.Sts, ViewTreeObserver.OnGlobalLayoutListener {
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C2688ajN bulkTransferEmptyPresenter;
|
||
|
public Animator.AnimatorListener c;
|
||
|
private fSJ d;
|
||
|
|
||
|
@BindView
|
||
|
public ImageView overlayImageView;
|
||
|
|
||
|
@BindView
|
||
|
public RelativeLayout relativeTutorial;
|
||
|
|
||
|
@BindView
|
||
|
RelativeLayout rootView;
|
||
|
|
||
|
public static BulkTransferEmptyFragment c(boolean z) {
|
||
|
BulkTransferEmptyFragment bulkTransferEmptyFragment = new BulkTransferEmptyFragment();
|
||
|
Bundle bundle = new Bundle();
|
||
|
bundle.putBoolean("BUNDLE_SHOW_TUTORIAL", z);
|
||
|
bulkTransferEmptyFragment.setArguments(bundle);
|
||
|
return bulkTransferEmptyFragment;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559472, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
this.d = glR.Ge_(getActivity(), new IntentFilter("com.scb.phone/BROADCAST_SHOW_BULK_TRANSFER_TUTORIAL")).subscribe(new fSQ(this) { // from class: o.eHL
|
||
|
private BulkTransferEmptyFragment d;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
BulkTransferEmptyFragment bulkTransferEmptyFragment = this.d;
|
||
|
bulkTransferEmptyFragment.overlayImageView.animate().setDuration(300L).alpha(BitmapDescriptorFactory.HUE_RED).setListener(bulkTransferEmptyFragment.c);
|
||
|
bulkTransferEmptyFragment.relativeTutorial.animate().setDuration(300L).alpha(BitmapDescriptorFactory.HUE_RED).setListener(bulkTransferEmptyFragment.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
}, new fSQ() { // from class: o.eHN
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
guQ.a((Throwable) obj);
|
||
|
}
|
||
|
});
|
||
|
this.rootView.getViewTreeObserver().addOnGlobalLayoutListener(this);
|
||
|
this.bulkTransferEmptyPresenter.e((C2688ajN) this);
|
||
|
if (getArguments() != null) {
|
||
|
C2688ajN c2688ajN = this.bulkTransferEmptyPresenter;
|
||
|
boolean z = getArguments().getBoolean("BUNDLE_SHOW_TUTORIAL", false);
|
||
|
c2688ajN.c = z;
|
||
|
if (!z) {
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.ajO
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC6636cYn.Sts) obj).b();
|
||
|
}
|
||
|
};
|
||
|
if (c2688ajN.f != 0) {
|
||
|
ieS.e(c2688ajN.f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
this.c = new Animator.AnimatorListener(this) { // from class: com.scb.phone.view.fragment.bulktransfer.BulkTransferEmptyFragment.4
|
||
|
private BulkTransferEmptyFragment a;
|
||
|
|
||
|
@Override // android.animation.Animator.AnimatorListener
|
||
|
public final void onAnimationCancel(Animator animator) {
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.Animator.AnimatorListener
|
||
|
public final void onAnimationRepeat(Animator animator) {
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.Animator.AnimatorListener
|
||
|
public final void onAnimationStart(Animator animator) {
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.Animator.AnimatorListener
|
||
|
public final void onAnimationEnd(Animator animator) {
|
||
|
BulkTransferEmptyFragment bulkTransferEmptyFragment = this.a;
|
||
|
bulkTransferEmptyFragment.overlayImageView.setVisibility(8);
|
||
|
bulkTransferEmptyFragment.relativeTutorial.setVisibility(8);
|
||
|
}
|
||
|
};
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.Sts
|
||
|
public final void a() {
|
||
|
startActivity(new Intent(getContext(), (Class<?>) CreateRecipientGroupActivity.class));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.Sts
|
||
|
public final void d() {
|
||
|
this.overlayImageView.setVisibility(8);
|
||
|
this.relativeTutorial.setVisibility(8);
|
||
|
C10457eEr.aqd_(this, new Intent("com.scb.phone/BROADCAST_SHOW_BULK_TRANSFER_TUTORIAL"));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.Sts
|
||
|
public final void b() {
|
||
|
this.overlayImageView.setVisibility(8);
|
||
|
this.relativeTutorial.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onDestroy() {
|
||
|
fSJ fsj = this.d;
|
||
|
if (fsj != null && !fsj.isDisposed()) {
|
||
|
this.d.dispose();
|
||
|
}
|
||
|
this.bulkTransferEmptyPresenter.w_();
|
||
|
super.onDestroy();
|
||
|
}
|
||
|
|
||
|
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
|
||
|
public void onGlobalLayout() {
|
||
|
this.rootView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
|
||
|
C2688ajN c2688ajN = this.bulkTransferEmptyPresenter;
|
||
|
if (c2688ajN.c) {
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.ajP
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC6636cYn.Sts) obj).c();
|
||
|
}
|
||
|
};
|
||
|
if (c2688ajN.f != 0) {
|
||
|
ieS.e(c2688ajN.f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6636cYn.Sts
|
||
|
public final void c() {
|
||
|
C12891fKc.azJ_(getContext(), this.rootView, this.overlayImageView);
|
||
|
}
|
||
|
|
||
|
@OnClick
|
||
|
public void createButtonClicked() {
|
||
|
C2688ajN c2688ajN = this.bulkTransferEmptyPresenter;
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.ajQ
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC6636cYn.Sts) obj).a();
|
||
|
}
|
||
|
};
|
||
|
if (c2688ajN.f != 0) {
|
||
|
ieS.e(c2688ajN.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@OnClick
|
||
|
public void onTutorialClicked() {
|
||
|
C2688ajN c2688ajN = this.bulkTransferEmptyPresenter;
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.ajL
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC6636cYn.Sts) obj).d();
|
||
|
}
|
||
|
};
|
||
|
if (c2688ajN.f != 0) {
|
||
|
ieS.e(c2688ajN.f);
|
||
|
}
|
||
|
}
|
||
|
}
|