what-the-bank/sources/com/scb/phone/view/custom/accountsummary/ImageAdBannerView.java

104 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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 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 ImageAdBannerView extends BaseAdBannerView {
@BindView
public ImageView backgroundImage;
@BindView
public ImageView closeButton;
private /* synthetic */ ImageAdBannerView(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 ImageAdBannerView(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.2131559064, 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() {
ImageView imageView = this.backgroundImage;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
return imageView;
}
@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.backgroundImage;
ImageView imageView2 = null;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
e.aBu_(imageView, null);
ImageView imageView3 = this.closeButton;
if (imageView3 != null) {
imageView2 = imageView3;
} else {
C14957gcv.a("");
}
imageView2.setVisibility(c0375Fe.h ? 0 : 8);
}
}
public final void setCloseButton(ImageView imageView) {
C14957gcv.e(imageView, "");
this.closeButton = imageView;
}
public final void setBackgroundImage(ImageView imageView) {
C14957gcv.e(imageView, "");
this.backgroundImage = imageView;
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public ImageAdBannerView(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 ImageAdBannerView(Context context) {
this(context, null, 6, (byte) 0);
C14957gcv.e(context, "");
}
}