Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
309
apk_decompiled/sources/k2/C0417a.java
Normal file
309
apk_decompiled/sources/k2/C0417a.java
Normal file
@@ -0,0 +1,309 @@
|
||||
package k2;
|
||||
|
||||
import B2.d;
|
||||
import E2.g;
|
||||
import E2.k;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.ColorFilter;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.text.TextPaint;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.FrameLayout;
|
||||
import com.adif.elcanomovil.R;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.text.NumberFormat;
|
||||
import x2.i;
|
||||
import x2.j;
|
||||
import x2.m;
|
||||
|
||||
/* renamed from: k2.a, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class C0417a extends Drawable implements i {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final WeakReference f7050a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final g f7051b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final j f7052c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final Rect f7053d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final c f7054e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public float f7055f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public float f7056g;
|
||||
public final int h;
|
||||
public float i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public float f7057j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public float f7058k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public WeakReference f7059l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public WeakReference f7060m;
|
||||
|
||||
public C0417a(Context context, b bVar) {
|
||||
d dVar;
|
||||
WeakReference weakReference = new WeakReference(context);
|
||||
this.f7050a = weakReference;
|
||||
m.c(context, m.f8966b, "Theme.MaterialComponents");
|
||||
this.f7053d = new Rect();
|
||||
j jVar = new j(this);
|
||||
this.f7052c = jVar;
|
||||
TextPaint textPaint = jVar.f8958a;
|
||||
textPaint.setTextAlign(Paint.Align.CENTER);
|
||||
c cVar = new c(context, bVar);
|
||||
this.f7054e = cVar;
|
||||
boolean f2 = f();
|
||||
b bVar2 = cVar.f7089b;
|
||||
g gVar = new g(k.a(context, f2 ? bVar2.f7071g.intValue() : bVar2.f7069e.intValue(), f() ? bVar2.h.intValue() : bVar2.f7070f.intValue(), new E2.a(0)).a());
|
||||
this.f7051b = gVar;
|
||||
h();
|
||||
Context context2 = (Context) weakReference.get();
|
||||
if (context2 != null && jVar.f8964g != (dVar = new d(context2, bVar2.f7068d.intValue()))) {
|
||||
jVar.b(dVar, context2);
|
||||
textPaint.setColor(bVar2.f7067c.intValue());
|
||||
invalidateSelf();
|
||||
j();
|
||||
invalidateSelf();
|
||||
}
|
||||
int i = bVar2.f7074l;
|
||||
if (i != -2) {
|
||||
this.h = ((int) Math.pow(10.0d, i - 1.0d)) - 1;
|
||||
} else {
|
||||
this.h = bVar2.f7075m;
|
||||
}
|
||||
jVar.f8962e = true;
|
||||
j();
|
||||
invalidateSelf();
|
||||
jVar.f8962e = true;
|
||||
h();
|
||||
j();
|
||||
invalidateSelf();
|
||||
textPaint.setAlpha(getAlpha());
|
||||
invalidateSelf();
|
||||
ColorStateList valueOf = ColorStateList.valueOf(bVar2.f7066b.intValue());
|
||||
if (gVar.f400a.f388c != valueOf) {
|
||||
gVar.j(valueOf);
|
||||
invalidateSelf();
|
||||
}
|
||||
textPaint.setColor(bVar2.f7067c.intValue());
|
||||
invalidateSelf();
|
||||
WeakReference weakReference2 = this.f7059l;
|
||||
if (weakReference2 != null && weakReference2.get() != null) {
|
||||
View view = (View) this.f7059l.get();
|
||||
WeakReference weakReference3 = this.f7060m;
|
||||
i(view, weakReference3 != null ? (FrameLayout) weakReference3.get() : null);
|
||||
}
|
||||
j();
|
||||
setVisible(bVar2.f7081t.booleanValue(), false);
|
||||
}
|
||||
|
||||
@Override // x2.i
|
||||
public final void a() {
|
||||
invalidateSelf();
|
||||
}
|
||||
|
||||
public final String b() {
|
||||
c cVar = this.f7054e;
|
||||
b bVar = cVar.f7089b;
|
||||
String str = bVar.f7072j;
|
||||
boolean z3 = str != null;
|
||||
WeakReference weakReference = this.f7050a;
|
||||
if (z3) {
|
||||
int i = bVar.f7074l;
|
||||
if (i == -2 || str == null || str.length() <= i) {
|
||||
return str;
|
||||
}
|
||||
Context context = (Context) weakReference.get();
|
||||
if (context == null) {
|
||||
return "";
|
||||
}
|
||||
return String.format(context.getString(R.string.m3_exceed_max_badge_text_suffix), str.substring(0, i - 1), "…");
|
||||
}
|
||||
if (!g()) {
|
||||
return null;
|
||||
}
|
||||
int i4 = this.h;
|
||||
b bVar2 = cVar.f7089b;
|
||||
if (i4 == -2 || e() <= this.h) {
|
||||
return NumberFormat.getInstance(bVar2.f7076n).format(e());
|
||||
}
|
||||
Context context2 = (Context) weakReference.get();
|
||||
return context2 == null ? "" : String.format(bVar2.f7076n, context2.getString(R.string.mtrl_exceed_max_badge_number_suffix), Integer.valueOf(this.h), "+");
|
||||
}
|
||||
|
||||
public final CharSequence c() {
|
||||
Context context;
|
||||
if (!isVisible()) {
|
||||
return null;
|
||||
}
|
||||
c cVar = this.f7054e;
|
||||
b bVar = cVar.f7089b;
|
||||
String str = bVar.f7072j;
|
||||
if (str != null) {
|
||||
String str2 = bVar.f7077o;
|
||||
return str2 != null ? str2 : str;
|
||||
}
|
||||
boolean g4 = g();
|
||||
b bVar2 = cVar.f7089b;
|
||||
if (!g4) {
|
||||
return bVar2.p;
|
||||
}
|
||||
if (bVar2.f7078q == 0 || (context = (Context) this.f7050a.get()) == null) {
|
||||
return null;
|
||||
}
|
||||
if (this.h != -2) {
|
||||
int e4 = e();
|
||||
int i = this.h;
|
||||
if (e4 > i) {
|
||||
return context.getString(bVar2.f7079r, Integer.valueOf(i));
|
||||
}
|
||||
}
|
||||
return context.getResources().getQuantityString(bVar2.f7078q, e(), Integer.valueOf(e()));
|
||||
}
|
||||
|
||||
public final FrameLayout d() {
|
||||
WeakReference weakReference = this.f7060m;
|
||||
if (weakReference != null) {
|
||||
return (FrameLayout) weakReference.get();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable
|
||||
public final void draw(Canvas canvas) {
|
||||
String b4;
|
||||
if (getBounds().isEmpty() || getAlpha() == 0 || !isVisible()) {
|
||||
return;
|
||||
}
|
||||
this.f7051b.draw(canvas);
|
||||
if (!f() || (b4 = b()) == null) {
|
||||
return;
|
||||
}
|
||||
Rect rect = new Rect();
|
||||
j jVar = this.f7052c;
|
||||
jVar.f8958a.getTextBounds(b4, 0, b4.length(), rect);
|
||||
float exactCenterY = this.f7056g - rect.exactCenterY();
|
||||
canvas.drawText(b4, this.f7055f, rect.bottom <= 0 ? (int) exactCenterY : Math.round(exactCenterY), jVar.f8958a);
|
||||
}
|
||||
|
||||
public final int e() {
|
||||
int i = this.f7054e.f7089b.f7073k;
|
||||
if (i != -1) {
|
||||
return i;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final boolean f() {
|
||||
return this.f7054e.f7089b.f7072j != null || g();
|
||||
}
|
||||
|
||||
public final boolean g() {
|
||||
b bVar = this.f7054e.f7089b;
|
||||
return bVar.f7072j == null && bVar.f7073k != -1;
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable
|
||||
public final int getAlpha() {
|
||||
return this.f7054e.f7089b.i;
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable
|
||||
public final int getIntrinsicHeight() {
|
||||
return this.f7053d.height();
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable
|
||||
public final int getIntrinsicWidth() {
|
||||
return this.f7053d.width();
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable
|
||||
public final int getOpacity() {
|
||||
return -3;
|
||||
}
|
||||
|
||||
public final void h() {
|
||||
Context context = (Context) this.f7050a.get();
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
boolean f2 = f();
|
||||
c cVar = this.f7054e;
|
||||
this.f7051b.setShapeAppearanceModel(k.a(context, f2 ? cVar.f7089b.f7071g.intValue() : cVar.f7089b.f7069e.intValue(), f() ? cVar.f7089b.h.intValue() : cVar.f7089b.f7070f.intValue(), new E2.a(0)).a());
|
||||
invalidateSelf();
|
||||
}
|
||||
|
||||
public final void i(View view, FrameLayout frameLayout) {
|
||||
this.f7059l = new WeakReference(view);
|
||||
this.f7060m = new WeakReference(frameLayout);
|
||||
ViewGroup viewGroup = (ViewGroup) view.getParent();
|
||||
viewGroup.setClipChildren(false);
|
||||
viewGroup.setClipToPadding(false);
|
||||
j();
|
||||
invalidateSelf();
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable
|
||||
public final boolean isStateful() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:67:0x0220 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:70:0x0241 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:73:0x025e */
|
||||
/* JADX WARN: Removed duplicated region for block: B:76:0x026b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:79:0x0278 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:82:0x0285 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:83:0x0259 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:84:0x0238 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final void j() {
|
||||
/*
|
||||
Method dump skipped, instructions count: 736
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: k2.C0417a.j():void");
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable, x2.i
|
||||
public final boolean onStateChange(int[] iArr) {
|
||||
return super.onStateChange(iArr);
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable
|
||||
public final void setAlpha(int i) {
|
||||
c cVar = this.f7054e;
|
||||
cVar.f7088a.i = i;
|
||||
cVar.f7089b.i = i;
|
||||
this.f7052c.f8958a.setAlpha(getAlpha());
|
||||
invalidateSelf();
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.Drawable
|
||||
public final void setColorFilter(ColorFilter colorFilter) {
|
||||
}
|
||||
}
|
||||
135
apk_decompiled/sources/k2/b.java
Normal file
135
apk_decompiled/sources/k2/b.java
Normal file
@@ -0,0 +1,135 @@
|
||||
package k2;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import java.util.Locale;
|
||||
import kotlin.KotlinVersion;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class b implements Parcelable {
|
||||
public static final Parcelable.Creator<b> CREATOR = new D0.a(13);
|
||||
|
||||
/* renamed from: A, reason: collision with root package name */
|
||||
public Integer f7061A;
|
||||
|
||||
/* renamed from: B, reason: collision with root package name */
|
||||
public Integer f7062B;
|
||||
|
||||
/* renamed from: C, reason: collision with root package name */
|
||||
public Integer f7063C;
|
||||
|
||||
/* renamed from: D, reason: collision with root package name */
|
||||
public Boolean f7064D;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f7065a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Integer f7066b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public Integer f7067c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public Integer f7068d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public Integer f7069e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public Integer f7070f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public Integer f7071g;
|
||||
public Integer h;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public String f7072j;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public Locale f7076n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public String f7077o;
|
||||
public CharSequence p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public int f7078q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public int f7079r;
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public Integer f7080s;
|
||||
|
||||
/* renamed from: u, reason: collision with root package name */
|
||||
public Integer f7082u;
|
||||
|
||||
/* renamed from: v, reason: collision with root package name */
|
||||
public Integer f7083v;
|
||||
|
||||
/* renamed from: w, reason: collision with root package name */
|
||||
public Integer f7084w;
|
||||
|
||||
/* renamed from: x, reason: collision with root package name */
|
||||
public Integer f7085x;
|
||||
|
||||
/* renamed from: y, reason: collision with root package name */
|
||||
public Integer f7086y;
|
||||
|
||||
/* renamed from: z, reason: collision with root package name */
|
||||
public Integer f7087z;
|
||||
public int i = KotlinVersion.MAX_COMPONENT_VALUE;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public int f7073k = -2;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public int f7074l = -2;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public int f7075m = -2;
|
||||
|
||||
/* renamed from: t, reason: collision with root package name */
|
||||
public Boolean f7081t = Boolean.TRUE;
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeInt(this.f7065a);
|
||||
parcel.writeSerializable(this.f7066b);
|
||||
parcel.writeSerializable(this.f7067c);
|
||||
parcel.writeSerializable(this.f7068d);
|
||||
parcel.writeSerializable(this.f7069e);
|
||||
parcel.writeSerializable(this.f7070f);
|
||||
parcel.writeSerializable(this.f7071g);
|
||||
parcel.writeSerializable(this.h);
|
||||
parcel.writeInt(this.i);
|
||||
parcel.writeString(this.f7072j);
|
||||
parcel.writeInt(this.f7073k);
|
||||
parcel.writeInt(this.f7074l);
|
||||
parcel.writeInt(this.f7075m);
|
||||
String str = this.f7077o;
|
||||
parcel.writeString(str != null ? str.toString() : null);
|
||||
CharSequence charSequence = this.p;
|
||||
parcel.writeString(charSequence != null ? charSequence.toString() : null);
|
||||
parcel.writeInt(this.f7078q);
|
||||
parcel.writeSerializable(this.f7080s);
|
||||
parcel.writeSerializable(this.f7082u);
|
||||
parcel.writeSerializable(this.f7083v);
|
||||
parcel.writeSerializable(this.f7084w);
|
||||
parcel.writeSerializable(this.f7085x);
|
||||
parcel.writeSerializable(this.f7086y);
|
||||
parcel.writeSerializable(this.f7087z);
|
||||
parcel.writeSerializable(this.f7063C);
|
||||
parcel.writeSerializable(this.f7061A);
|
||||
parcel.writeSerializable(this.f7062B);
|
||||
parcel.writeSerializable(this.f7081t);
|
||||
parcel.writeSerializable(this.f7076n);
|
||||
parcel.writeSerializable(this.f7064D);
|
||||
}
|
||||
}
|
||||
220
apk_decompiled/sources/k2/c.java
Normal file
220
apk_decompiled/sources/k2/c.java
Normal file
@@ -0,0 +1,220 @@
|
||||
package k2;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.content.res.XmlResourceParser;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Xml;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import h2.AbstractC0379a;
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
import kotlin.KotlinVersion;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
import x2.m;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class c {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final b f7088a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final b f7089b = new b();
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final float f7090c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final float f7091d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final float f7092e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final float f7093f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final float f7094g;
|
||||
public final float h;
|
||||
public final int i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final int f7095j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final int f7096k;
|
||||
|
||||
public c(Context context, b bVar) {
|
||||
AttributeSet attributeSet;
|
||||
int i;
|
||||
int next;
|
||||
b bVar2 = bVar == null ? new b() : bVar;
|
||||
int i4 = bVar2.f7065a;
|
||||
if (i4 != 0) {
|
||||
try {
|
||||
XmlResourceParser xml = context.getResources().getXml(i4);
|
||||
do {
|
||||
next = xml.next();
|
||||
if (next == 2) {
|
||||
break;
|
||||
}
|
||||
} while (next != 1);
|
||||
if (next != 2) {
|
||||
throw new XmlPullParserException("No start tag found");
|
||||
}
|
||||
if (!TextUtils.equals(xml.getName(), "badge")) {
|
||||
throw new XmlPullParserException("Must have a <" + ((Object) "badge") + "> start tag");
|
||||
}
|
||||
AttributeSet asAttributeSet = Xml.asAttributeSet(xml);
|
||||
attributeSet = asAttributeSet;
|
||||
i = asAttributeSet.getStyleAttribute();
|
||||
} catch (IOException | XmlPullParserException e4) {
|
||||
Resources.NotFoundException notFoundException = new Resources.NotFoundException("Can't load badge resource ID #0x" + Integer.toHexString(i4));
|
||||
notFoundException.initCause(e4);
|
||||
throw notFoundException;
|
||||
}
|
||||
} else {
|
||||
attributeSet = null;
|
||||
i = 0;
|
||||
}
|
||||
TypedArray h = m.h(context, attributeSet, AbstractC0379a.f6755a, R.attr.badgeStyle, i == 0 ? 2132018277 : i, new int[0]);
|
||||
Resources resources = context.getResources();
|
||||
this.f7090c = h.getDimensionPixelSize(4, -1);
|
||||
this.i = context.getResources().getDimensionPixelSize(R.dimen.mtrl_badge_horizontal_edge_offset);
|
||||
this.f7095j = context.getResources().getDimensionPixelSize(R.dimen.mtrl_badge_text_horizontal_edge_offset);
|
||||
this.f7091d = h.getDimensionPixelSize(14, -1);
|
||||
this.f7092e = h.getDimension(12, resources.getDimension(R.dimen.m3_badge_size));
|
||||
this.f7094g = h.getDimension(17, resources.getDimension(R.dimen.m3_badge_with_text_size));
|
||||
this.f7093f = h.getDimension(3, resources.getDimension(R.dimen.m3_badge_size));
|
||||
this.h = h.getDimension(13, resources.getDimension(R.dimen.m3_badge_with_text_size));
|
||||
this.f7096k = h.getInt(24, 1);
|
||||
b bVar3 = this.f7089b;
|
||||
int i5 = bVar2.i;
|
||||
bVar3.i = i5 == -2 ? KotlinVersion.MAX_COMPONENT_VALUE : i5;
|
||||
int i6 = bVar2.f7073k;
|
||||
if (i6 != -2) {
|
||||
bVar3.f7073k = i6;
|
||||
} else if (h.hasValue(23)) {
|
||||
this.f7089b.f7073k = h.getInt(23, 0);
|
||||
} else {
|
||||
this.f7089b.f7073k = -1;
|
||||
}
|
||||
String str = bVar2.f7072j;
|
||||
if (str != null) {
|
||||
this.f7089b.f7072j = str;
|
||||
} else if (h.hasValue(7)) {
|
||||
this.f7089b.f7072j = h.getString(7);
|
||||
}
|
||||
b bVar4 = this.f7089b;
|
||||
bVar4.f7077o = bVar2.f7077o;
|
||||
CharSequence charSequence = bVar2.p;
|
||||
bVar4.p = charSequence == null ? context.getString(R.string.mtrl_badge_numberless_content_description) : charSequence;
|
||||
b bVar5 = this.f7089b;
|
||||
int i7 = bVar2.f7078q;
|
||||
bVar5.f7078q = i7 == 0 ? R.plurals.mtrl_badge_content_description : i7;
|
||||
int i8 = bVar2.f7079r;
|
||||
bVar5.f7079r = i8 == 0 ? R.string.mtrl_exceed_max_badge_number_content_description : i8;
|
||||
Boolean bool = bVar2.f7081t;
|
||||
bVar5.f7081t = Boolean.valueOf(bool == null || bool.booleanValue());
|
||||
b bVar6 = this.f7089b;
|
||||
int i9 = bVar2.f7074l;
|
||||
bVar6.f7074l = i9 == -2 ? h.getInt(21, -2) : i9;
|
||||
b bVar7 = this.f7089b;
|
||||
int i10 = bVar2.f7075m;
|
||||
bVar7.f7075m = i10 == -2 ? h.getInt(22, -2) : i10;
|
||||
b bVar8 = this.f7089b;
|
||||
Integer num = bVar2.f7069e;
|
||||
bVar8.f7069e = Integer.valueOf(num == null ? h.getResourceId(5, 2132017548) : num.intValue());
|
||||
b bVar9 = this.f7089b;
|
||||
Integer num2 = bVar2.f7070f;
|
||||
bVar9.f7070f = Integer.valueOf(num2 == null ? h.getResourceId(6, 0) : num2.intValue());
|
||||
b bVar10 = this.f7089b;
|
||||
Integer num3 = bVar2.f7071g;
|
||||
bVar10.f7071g = Integer.valueOf(num3 == null ? h.getResourceId(15, 2132017548) : num3.intValue());
|
||||
b bVar11 = this.f7089b;
|
||||
Integer num4 = bVar2.h;
|
||||
bVar11.h = Integer.valueOf(num4 == null ? h.getResourceId(16, 0) : num4.intValue());
|
||||
b bVar12 = this.f7089b;
|
||||
Integer num5 = bVar2.f7066b;
|
||||
bVar12.f7066b = Integer.valueOf(num5 == null ? AbstractC0105a.w(context, h, 1).getDefaultColor() : num5.intValue());
|
||||
b bVar13 = this.f7089b;
|
||||
Integer num6 = bVar2.f7068d;
|
||||
bVar13.f7068d = Integer.valueOf(num6 == null ? h.getResourceId(8, 2132017711) : num6.intValue());
|
||||
Integer num7 = bVar2.f7067c;
|
||||
if (num7 != null) {
|
||||
this.f7089b.f7067c = num7;
|
||||
} else if (h.hasValue(9)) {
|
||||
this.f7089b.f7067c = Integer.valueOf(AbstractC0105a.w(context, h, 9).getDefaultColor());
|
||||
} else {
|
||||
int intValue = this.f7089b.f7068d.intValue();
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(intValue, AbstractC0379a.f6751E);
|
||||
obtainStyledAttributes.getDimension(0, BitmapDescriptorFactory.HUE_RED);
|
||||
ColorStateList w3 = AbstractC0105a.w(context, obtainStyledAttributes, 3);
|
||||
AbstractC0105a.w(context, obtainStyledAttributes, 4);
|
||||
AbstractC0105a.w(context, obtainStyledAttributes, 5);
|
||||
obtainStyledAttributes.getInt(2, 0);
|
||||
obtainStyledAttributes.getInt(1, 1);
|
||||
int i11 = obtainStyledAttributes.hasValue(12) ? 12 : 10;
|
||||
obtainStyledAttributes.getResourceId(i11, 0);
|
||||
obtainStyledAttributes.getString(i11);
|
||||
obtainStyledAttributes.getBoolean(14, false);
|
||||
AbstractC0105a.w(context, obtainStyledAttributes, 6);
|
||||
obtainStyledAttributes.getFloat(7, BitmapDescriptorFactory.HUE_RED);
|
||||
obtainStyledAttributes.getFloat(8, BitmapDescriptorFactory.HUE_RED);
|
||||
obtainStyledAttributes.getFloat(9, BitmapDescriptorFactory.HUE_RED);
|
||||
obtainStyledAttributes.recycle();
|
||||
TypedArray obtainStyledAttributes2 = context.obtainStyledAttributes(intValue, AbstractC0379a.f6770s);
|
||||
obtainStyledAttributes2.hasValue(0);
|
||||
obtainStyledAttributes2.getFloat(0, BitmapDescriptorFactory.HUE_RED);
|
||||
obtainStyledAttributes2.recycle();
|
||||
this.f7089b.f7067c = Integer.valueOf(w3.getDefaultColor());
|
||||
}
|
||||
b bVar14 = this.f7089b;
|
||||
Integer num8 = bVar2.f7080s;
|
||||
bVar14.f7080s = Integer.valueOf(num8 == null ? h.getInt(2, 8388661) : num8.intValue());
|
||||
b bVar15 = this.f7089b;
|
||||
Integer num9 = bVar2.f7082u;
|
||||
bVar15.f7082u = Integer.valueOf(num9 == null ? h.getDimensionPixelSize(11, resources.getDimensionPixelSize(R.dimen.mtrl_badge_long_text_horizontal_padding)) : num9.intValue());
|
||||
b bVar16 = this.f7089b;
|
||||
Integer num10 = bVar2.f7083v;
|
||||
bVar16.f7083v = Integer.valueOf(num10 == null ? h.getDimensionPixelSize(10, resources.getDimensionPixelSize(R.dimen.m3_badge_with_text_vertical_padding)) : num10.intValue());
|
||||
b bVar17 = this.f7089b;
|
||||
Integer num11 = bVar2.f7084w;
|
||||
bVar17.f7084w = Integer.valueOf(num11 == null ? h.getDimensionPixelOffset(18, 0) : num11.intValue());
|
||||
b bVar18 = this.f7089b;
|
||||
Integer num12 = bVar2.f7085x;
|
||||
bVar18.f7085x = Integer.valueOf(num12 == null ? h.getDimensionPixelOffset(25, 0) : num12.intValue());
|
||||
b bVar19 = this.f7089b;
|
||||
Integer num13 = bVar2.f7086y;
|
||||
bVar19.f7086y = Integer.valueOf(num13 == null ? h.getDimensionPixelOffset(19, bVar19.f7084w.intValue()) : num13.intValue());
|
||||
b bVar20 = this.f7089b;
|
||||
Integer num14 = bVar2.f7087z;
|
||||
bVar20.f7087z = Integer.valueOf(num14 == null ? h.getDimensionPixelOffset(26, bVar20.f7085x.intValue()) : num14.intValue());
|
||||
b bVar21 = this.f7089b;
|
||||
Integer num15 = bVar2.f7063C;
|
||||
bVar21.f7063C = Integer.valueOf(num15 == null ? h.getDimensionPixelOffset(20, 0) : num15.intValue());
|
||||
b bVar22 = this.f7089b;
|
||||
Integer num16 = bVar2.f7061A;
|
||||
bVar22.f7061A = Integer.valueOf(num16 == null ? 0 : num16.intValue());
|
||||
b bVar23 = this.f7089b;
|
||||
Integer num17 = bVar2.f7062B;
|
||||
bVar23.f7062B = Integer.valueOf(num17 == null ? 0 : num17.intValue());
|
||||
b bVar24 = this.f7089b;
|
||||
Boolean bool2 = bVar2.f7064D;
|
||||
bVar24.f7064D = Boolean.valueOf(bool2 == null ? h.getBoolean(0, false) : bool2.booleanValue());
|
||||
h.recycle();
|
||||
Locale locale = bVar2.f7076n;
|
||||
if (locale == null) {
|
||||
this.f7089b.f7076n = Locale.getDefault(Locale.Category.FORMAT);
|
||||
} else {
|
||||
this.f7089b.f7076n = locale;
|
||||
}
|
||||
this.f7088a = bVar2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user