package com.scb.phone.view.custom.accountsummary; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.squareup.picasso.Picasso; import o.C0375Fe; import o.C13020fOa; import o.C14957gcv; /* loaded from: classes5.dex */ public final class ImageAndTextAdBannerView extends BaseAdBannerView { @BindView public ImageView bannerImage; @BindView public ImageView closeButton; @BindView public TextView descriptionText; @BindView public TextView linkText; @BindView public TextView titleText; private /* synthetic */ ImageAndTextAdBannerView(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 ImageAndTextAdBannerView(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); C14957gcv.e(context, ""); } @Override // com.scb.phone.view.custom.accountsummary.BaseAdBannerView public final void e(Context context) { C14957gcv.e(context, ""); ButterKnife.c(this, FrameLayout.inflate(getContext(), R.layout.2131559065, this)); } @Override // com.scb.phone.view.custom.accountsummary.BaseAdBannerView public final View c() { ImageView imageView = this.closeButton; if (imageView == null) { C14957gcv.a(""); imageView = null; } return imageView; } @Override // com.scb.phone.view.custom.accountsummary.BaseAdBannerView public final View d() { TextView textView = this.linkText; if (textView == null) { C14957gcv.a(""); textView = null; } return textView; } @Override // com.scb.phone.view.custom.accountsummary.BaseAdBannerView public final void c(C0375Fe c0375Fe) { if (c0375Fe != null) { C13020fOa e = Picasso.d().e(c0375Fe.j); ImageView imageView = this.bannerImage; TextView textView = null; if (imageView == null) { C14957gcv.a(""); imageView = null; } e.aBu_(imageView, null); TextView textView2 = this.linkText; if (textView2 == null) { C14957gcv.a(""); textView2 = null; } textView2.setText(c0375Fe.a); TextView textView3 = this.titleText; if (textView3 == null) { C14957gcv.a(""); textView3 = null; } textView3.setText(c0375Fe.f); TextView textView4 = this.descriptionText; if (textView4 == null) { C14957gcv.a(""); textView4 = null; } textView4.setText(c0375Fe.c); TextView textView5 = this.descriptionText; if (textView5 != null) { textView = textView5; } else { C14957gcv.a(""); } textView.setVisibility(c0375Fe.c != null ? 0 : 8); } } public final void setTitleText(TextView textView) { C14957gcv.e(textView, ""); this.titleText = textView; } public final void setLinkText(TextView textView) { C14957gcv.e(textView, ""); this.linkText = textView; } public final void setDescriptionText(TextView textView) { C14957gcv.e(textView, ""); this.descriptionText = textView; } public final void setCloseButton(ImageView imageView) { C14957gcv.e(imageView, ""); this.closeButton = imageView; } public final void setBannerImage(ImageView imageView) { C14957gcv.e(imageView, ""); this.bannerImage = imageView; } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public ImageAndTextAdBannerView(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 ImageAndTextAdBannerView(Context context) { this(context, null, 6, (byte) 0); C14957gcv.e(context, ""); } }