what-the-bank/sources/com/skydoves/balloon/vectortext/VectorTextView.java

65 lines
3.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.skydoves.balloon.vectortext;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import androidx.appcompat.widget.AppCompatTextView;
import o.C12992fNe;
import o.C14957gcv;
import o.fMH;
import o.fMK;
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
/* loaded from: classes5.dex */
public final class VectorTextView extends AppCompatTextView {
public C12992fNe b;
private /* synthetic */ VectorTextView(Context context, byte b) {
this(context, (AttributeSet) null);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public VectorTextView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
C14957gcv.e(context, "");
if (attributeSet != null) {
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, fMH.Sts.VectorTextView);
C14957gcv.c(obtainStyledAttributes, "");
int resourceId = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawableStart, PKIFailureInfo.systemUnavail);
Integer valueOf = resourceId == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId);
int resourceId2 = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawableEnd, PKIFailureInfo.systemUnavail);
Integer valueOf2 = resourceId2 == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId2);
int resourceId3 = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawableBottom, PKIFailureInfo.systemUnavail);
Integer valueOf3 = resourceId3 == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId3);
int resourceId4 = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawableTop, PKIFailureInfo.systemUnavail);
Integer valueOf4 = resourceId4 == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId4);
int resourceId5 = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawablePadding, PKIFailureInfo.systemUnavail);
Integer valueOf5 = resourceId5 == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId5);
int resourceId6 = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawableTintColor, PKIFailureInfo.systemUnavail);
Integer valueOf6 = resourceId6 == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId6);
int resourceId7 = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawableWidth, PKIFailureInfo.systemUnavail);
Integer valueOf7 = resourceId7 == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId7);
int resourceId8 = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawableHeight, PKIFailureInfo.systemUnavail);
Integer valueOf8 = resourceId8 == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId8);
int resourceId9 = obtainStyledAttributes.getResourceId(fMH.Sts.VectorTextView_balloon_drawableSquareSize, PKIFailureInfo.systemUnavail);
setDrawableTextViewParams(new C12992fNe(valueOf, valueOf2, valueOf3, valueOf4, null, null, null, valueOf5, valueOf6, valueOf7, valueOf8, resourceId9 == Integer.MIN_VALUE ? null : Integer.valueOf(resourceId9), 4080));
obtainStyledAttributes.recycle();
}
}
public final void setDrawableTextViewParams(C12992fNe c12992fNe) {
if (c12992fNe != null) {
fMK.aAX_(this, c12992fNe);
} else {
c12992fNe = null;
}
this.b = c12992fNe;
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public VectorTextView(Context context) {
this(context, (byte) 0);
C14957gcv.e(context, "");
}
}