187 lines
5.8 KiB
Java
187 lines
5.8 KiB
Java
|
package com.scb.phone.view.fragment.accountsummary;
|
||
|
|
||
|
import android.content.IntentFilter;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.ImageView;
|
||
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.BaseActivity;
|
||
|
import com.scb.phone.view.activity.debitatm.DebitCardDetailActivity;
|
||
|
import com.scb.phone.view.fragment.BaseFragment;
|
||
|
import com.scb.phone.view.fragment.accountsummary.DebitCardFragment;
|
||
|
import o.C12891fKc;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC6627cYe;
|
||
|
import o.TYj;
|
||
|
import o.aCC;
|
||
|
import o.fSJ;
|
||
|
import o.fSQ;
|
||
|
import o.glR;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class DebitCardFragment extends Hilt_DebitCardFragment implements InterfaceC6627cYe.RVV {
|
||
|
private fSJ c;
|
||
|
|
||
|
@BindView
|
||
|
ConstraintLayout csLayoutCard;
|
||
|
|
||
|
@BindView
|
||
|
ConstraintLayout csLayoutParent;
|
||
|
private TYj d = new TYj();
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public aCC debitCardPresenter;
|
||
|
private fSJ f;
|
||
|
private fSJ g;
|
||
|
private fSJ h;
|
||
|
|
||
|
@BindView
|
||
|
ImageView ivDebit;
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559437, viewGroup, false);
|
||
|
((BaseFragment) this).a = ButterKnife.c(this, inflate);
|
||
|
((BaseFragment) this).b = glR.Ge_(getContext(), new IntentFilter("com.scb.phone/BROADCAST_SWIPE_REFRESH")).subscribe(new fSQ(this) { // from class: o.eFw
|
||
|
private DebitCardFragment c;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
this.c.debitCardPresenter.d();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
}, new fSQ() { // from class: o.eFx
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
guQ.a((Throwable) obj);
|
||
|
}
|
||
|
});
|
||
|
this.f = glR.Ge_(getContext(), new IntentFilter("com.scb.phone/BROADCAST_HOME_ACTIVITY_REFRESH")).subscribe(new fSQ(this) { // from class: o.eFy
|
||
|
private DebitCardFragment b;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
this.b.debitCardPresenter.d();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
}, new fSQ() { // from class: o.eFx
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
guQ.a((Throwable) obj);
|
||
|
}
|
||
|
});
|
||
|
this.h = glR.Ge_(getContext(), new IntentFilter("com.scb.phone/BROADCAST_REGISTERED_ACCOUNTS_UPDATED")).subscribe(new fSQ(this) { // from class: o.eFv
|
||
|
private DebitCardFragment b;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
this.b.debitCardPresenter.d();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
}, new fSQ() { // from class: o.eFx
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
guQ.a((Throwable) obj);
|
||
|
}
|
||
|
});
|
||
|
this.c = glR.Ge_(getContext(), new IntentFilter("com.scb.phone/BROADCAST_LOCK_CARD_REFRESH")).subscribe(new fSQ(this) { // from class: o.eFB
|
||
|
private DebitCardFragment a;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
this.a.debitCardPresenter.d();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
}, new fSQ() { // from class: o.eFx
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
guQ.a((Throwable) obj);
|
||
|
}
|
||
|
});
|
||
|
this.g = glR.Ge_(getContext(), new IntentFilter("com.scb.phone/BROADCAST_NICKNAME_CHANGED")).subscribe(new fSQ(this) { // from class: o.eFC
|
||
|
private DebitCardFragment c;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
this.c.debitCardPresenter.d();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
}, new fSQ() { // from class: o.eFx
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
guQ.a((Throwable) obj);
|
||
|
}
|
||
|
});
|
||
|
this.debitCardPresenter.e((aCC) this);
|
||
|
this.debitCardPresenter.d();
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onDestroy() {
|
||
|
aCC acc = this.debitCardPresenter;
|
||
|
if (acc != null) {
|
||
|
acc.w_();
|
||
|
}
|
||
|
fSJ fsj = this.f;
|
||
|
if (fsj != null && !fsj.isDisposed()) {
|
||
|
this.f.dispose();
|
||
|
}
|
||
|
fSJ fsj2 = this.h;
|
||
|
if (fsj2 != null && !fsj2.isDisposed()) {
|
||
|
this.h.dispose();
|
||
|
}
|
||
|
fSJ fsj3 = this.c;
|
||
|
if (fsj3 != null && !fsj3.isDisposed()) {
|
||
|
this.c.dispose();
|
||
|
}
|
||
|
fSJ fsj4 = this.g;
|
||
|
if (fsj4 != null && !fsj4.isDisposed()) {
|
||
|
this.g.dispose();
|
||
|
}
|
||
|
super.onDestroy();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6627cYe.RVV
|
||
|
public final void b(String str) {
|
||
|
this.csLayoutParent.setVisibility(0);
|
||
|
C12891fKc.azD_(R.drawable.default_debit_card, this.ivDebit, str);
|
||
|
TYj tYj = this.d;
|
||
|
if (getActivity() != null) {
|
||
|
tYj.c(((BaseActivity) getActivity()).scbAnalytics, "debit_atm_card_summary");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6627cYe.RVV
|
||
|
public final void a() {
|
||
|
this.csLayoutParent.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@OnClick
|
||
|
public void navigateToDebitCardDetail() {
|
||
|
startActivity(DebitCardDetailActivity.aaR_(getContext()));
|
||
|
}
|
||
|
}
|