90 lines
2.9 KiB
Java
90 lines
2.9 KiB
Java
|
package com.scb.phone.view.fragment.debitatm;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.TextView;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.scb.phone.R;
|
||
|
import o.C6583cXR;
|
||
|
import o.IU;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC9094ddI;
|
||
|
import o.aCB;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class DebitCardRewardTabFragment extends Hilt_DebitCardRewardTabFragment implements InterfaceC9094ddI.HBt {
|
||
|
public String d;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public aCB tabDebitCardPointPresenter;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvPointValue;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvRemark;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvUnable;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvYouHave;
|
||
|
|
||
|
public static DebitCardRewardTabFragment d() {
|
||
|
return new DebitCardRewardTabFragment();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559538, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
this.tabDebitCardPointPresenter.e((aCB) this);
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9094ddI.HBt
|
||
|
public final void c(String str) {
|
||
|
this.tvYouHave.setVisibility(8);
|
||
|
this.tvPointValue.setVisibility(8);
|
||
|
this.tvUnable.setText(str);
|
||
|
this.tvUnable.setVisibility(0);
|
||
|
this.tvRemark.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9094ddI.HBt
|
||
|
public final void b() {
|
||
|
this.tvYouHave.setVisibility(8);
|
||
|
this.tvPointValue.setVisibility(8);
|
||
|
this.tvUnable.setVisibility(0);
|
||
|
this.tvRemark.setVisibility(8);
|
||
|
this.tvUnable.setText(this.d);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9094ddI.HBt
|
||
|
public final void c(IU iu) {
|
||
|
this.tvYouHave.setVisibility(0);
|
||
|
this.tvPointValue.setVisibility(0);
|
||
|
this.tvUnable.setVisibility(8);
|
||
|
this.tvPointValue.setText(String.format("%s %s", iu.g().b, (String) IU.e(new Object[]{iu}, -103287250, 103287254, System.identityHashCode(iu))));
|
||
|
this.tvRemark.setVisibility(0);
|
||
|
String b = C6583cXR.b(C6583cXR.c(iu.g().c).doubleValue());
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(getString(R.string.prepaid_message_m_card, b, (String) IU.e(new Object[]{iu}, -103287250, 103287254, System.identityHashCode(iu)), iu.g().d));
|
||
|
sb.append("\n");
|
||
|
sb.append(getString(R.string.prepaid_point_m_card));
|
||
|
this.tvRemark.setText(sb.toString());
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9094ddI.HBt
|
||
|
public final void e(IU iu) {
|
||
|
this.tvYouHave.setVisibility(0);
|
||
|
this.tvPointValue.setVisibility(0);
|
||
|
this.tvUnable.setVisibility(8);
|
||
|
this.tvRemark.setVisibility(8);
|
||
|
this.tvPointValue.setText(String.format("%s %s", 0, (String) IU.e(new Object[]{iu}, -103287250, 103287254, System.identityHashCode(iu))));
|
||
|
}
|
||
|
}
|