148 lines
4.8 KiB
Java
148 lines
4.8 KiB
Java
|
package com.scb.phone.view.fragment.ccrredemption.mileage;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.Button;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.HomeActivity;
|
||
|
import o.C0467He;
|
||
|
import o.C16316nR;
|
||
|
import o.C3137aro;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC9084dcz;
|
||
|
import o.ZI;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class MileageConfirmRedemptionFragment extends Hilt_MileageConfirmRedemptionFragment implements InterfaceC9084dcz {
|
||
|
|
||
|
@BindView
|
||
|
Button btnRedeemAnotherReward;
|
||
|
private C0467He c;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C3137aro presenter;
|
||
|
|
||
|
@BindView
|
||
|
TextView txvCardBalanceAfterRedemption;
|
||
|
|
||
|
@BindView
|
||
|
TextView txvMilesDeliveryEta;
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559767, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
this.presenter.e((C3137aro) this);
|
||
|
C0467He c0467He = (C0467He) getActivity().getIntent().getParcelableExtra("com.scb.phone.presentation.view.activity.ccr_redemption.mileage.MileageConfirmRedemptionActivity.KEY_CONFIRM_REDEMPTION_DTO");
|
||
|
this.c = c0467He;
|
||
|
c0467He.u = new C16316nR(getResources());
|
||
|
C3137aro c3137aro = this.presenter;
|
||
|
final boolean z = this.c.i;
|
||
|
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.arq
|
||
|
private boolean e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C3137aro.d(this.e, (InterfaceC9084dcz) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = z;
|
||
|
}
|
||
|
};
|
||
|
if (c3137aro.f != 0) {
|
||
|
ieS.e(c3137aro.f);
|
||
|
}
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@OnClick
|
||
|
public void onRedeemAnotherRewardClick() {
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
Intent intent = new Intent();
|
||
|
intent.putExtra("com.scb.phone.presentation.view.activity.ccr_redemption.confirm.ConfirmRedemptionActivity.CARD_POINTS_BALANCE", this.c.r);
|
||
|
activity.setResult(-1, intent);
|
||
|
activity.finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9084dcz
|
||
|
public final void e() {
|
||
|
this.txvCardBalanceAfterRedemption.setText(this.c.e());
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9084dcz
|
||
|
public final void a() {
|
||
|
this.txvMilesDeliveryEta.setText(getResources().getString(R.string.miles_delivery_eta_opr));
|
||
|
this.btnRedeemAnotherReward.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9084dcz
|
||
|
public final void d() {
|
||
|
this.txvMilesDeliveryEta.setText(getResources().getString(R.string.miles_delivery_eta));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9084dcz
|
||
|
public final void c() {
|
||
|
Intent intent = new Intent(getContext(), (Class<?>) HomeActivity.class);
|
||
|
intent.addFlags(603979776);
|
||
|
intent.putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_LAYOUT", R.id.account_summary_tab);
|
||
|
intent.putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_REFRESH", true);
|
||
|
startActivity(intent);
|
||
|
if (getActivity() != null) {
|
||
|
getActivity().finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9084dcz
|
||
|
public final void b() {
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
Intent intent = new Intent(activity, (Class<?>) HomeActivity.class);
|
||
|
intent.addFlags(603979776);
|
||
|
intent.putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_LAYOUT", R.id.account_summary_tab);
|
||
|
intent.putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_REFRESH", true);
|
||
|
startActivity(intent);
|
||
|
activity.finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onDestroy() {
|
||
|
this.presenter.w_();
|
||
|
super.onDestroy();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@OnClick
|
||
|
public void onAccountSummaryClick() {
|
||
|
C3137aro c3137aro = this.presenter;
|
||
|
final boolean z = this.c.i;
|
||
|
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.arn
|
||
|
private boolean a;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C3137aro.e(this.a, (InterfaceC9084dcz) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = z;
|
||
|
}
|
||
|
};
|
||
|
if (c3137aro.f != 0) {
|
||
|
ieS.e(c3137aro.f);
|
||
|
}
|
||
|
}
|
||
|
}
|