87 lines
2.9 KiB
Java
87 lines
2.9 KiB
Java
package com.scb.phone.view.custom.ccrredemption.ecoupon;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.Button;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.custom.ccrredemption.ecoupon.CustomECouponFooterButtonViewComponent;
|
|
import o.C14957gcv;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class CustomECouponFooterButtonViewComponent extends ConstraintLayout {
|
|
|
|
@BindView
|
|
public Button btNext;
|
|
|
|
private /* synthetic */ CustomECouponFooterButtonViewComponent(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 CustomECouponFooterButtonViewComponent(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
C14957gcv.e(context, "");
|
|
LayoutInflater.from(context).inflate(R.layout.2131559001, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
}
|
|
|
|
public final void setName(String str) {
|
|
C14957gcv.e(str, "");
|
|
Button button = this.btNext;
|
|
if (button == null) {
|
|
C14957gcv.a("");
|
|
button = null;
|
|
}
|
|
button.setText(str);
|
|
}
|
|
|
|
public final void setButtonClickListener(final View.OnClickListener onClickListener) {
|
|
Button button = this.btNext;
|
|
if (button == null) {
|
|
C14957gcv.a("");
|
|
button = null;
|
|
}
|
|
button.setOnClickListener(new View.OnClickListener(onClickListener) { // from class: o.eAP
|
|
private View.OnClickListener c;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
CustomECouponFooterButtonViewComponent.aou_(this.c, view);
|
|
}
|
|
|
|
{
|
|
this.c = onClickListener;
|
|
}
|
|
});
|
|
}
|
|
|
|
public static /* synthetic */ void aou_(View.OnClickListener onClickListener, View view) {
|
|
if (onClickListener != null) {
|
|
onClickListener.onClick(view);
|
|
}
|
|
}
|
|
|
|
public final void setBtNext(Button button) {
|
|
C14957gcv.e(button, "");
|
|
this.btNext = button;
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public CustomECouponFooterButtonViewComponent(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 CustomECouponFooterButtonViewComponent(Context context) {
|
|
this(context, null, 6, (byte) 0);
|
|
C14957gcv.e(context, "");
|
|
}
|
|
}
|