86 lines
2.9 KiB
Java
86 lines
2.9 KiB
Java
package com.scb.phone.view.custom.tierpricing;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.view.ViewGroup;
|
|
import android.widget.TextView;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import o.C14957gcv;
|
|
import o.WX;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class TierPricingPromotionView extends ConstraintLayout {
|
|
private final AttributeSet c;
|
|
|
|
@BindView
|
|
public TextView promo;
|
|
|
|
@BindView
|
|
public TierPricingSimplePromotionView tierPricingSimplePromo;
|
|
|
|
@BindView
|
|
public TextView validUntil;
|
|
|
|
private /* synthetic */ TierPricingPromotionView(Context context, AttributeSet attributeSet, int i, byte b) {
|
|
this(context, (i & 2) != 0 ? null : attributeSet, 0);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public TierPricingPromotionView(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
C14957gcv.e(context, "");
|
|
this.c = attributeSet;
|
|
LayoutInflater.from(getContext()).inflate(R.layout.2131559373, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
}
|
|
|
|
public final void setDisplay(WX wx) {
|
|
C14957gcv.e(wx, "");
|
|
TextView textView = this.validUntil;
|
|
TierPricingSimplePromotionView tierPricingSimplePromotionView = null;
|
|
if (textView == null) {
|
|
C14957gcv.a("");
|
|
textView = null;
|
|
}
|
|
textView.setText(wx.e);
|
|
TierPricingSimplePromotionView tierPricingSimplePromotionView2 = this.tierPricingSimplePromo;
|
|
if (tierPricingSimplePromotionView2 != null) {
|
|
tierPricingSimplePromotionView = tierPricingSimplePromotionView2;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
tierPricingSimplePromotionView.setDisplay(wx.d);
|
|
}
|
|
|
|
public final void setValidUntil(TextView textView) {
|
|
C14957gcv.e(textView, "");
|
|
this.validUntil = textView;
|
|
}
|
|
|
|
public final void setTierPricingSimplePromo(TierPricingSimplePromotionView tierPricingSimplePromotionView) {
|
|
C14957gcv.e(tierPricingSimplePromotionView, "");
|
|
this.tierPricingSimplePromo = tierPricingSimplePromotionView;
|
|
}
|
|
|
|
public final void setPromo(TextView textView) {
|
|
C14957gcv.e(textView, "");
|
|
this.promo = textView;
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public TierPricingPromotionView(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, 4, (byte) 0);
|
|
C14957gcv.e(context, "");
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public TierPricingPromotionView(Context context) {
|
|
this(context, null, 6, (byte) 0);
|
|
C14957gcv.e(context, "");
|
|
}
|
|
}
|