package com.google.android.material.snackbar; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.TextView; import androidx.core.view.n0; import c3.j; /* loaded from: classes2.dex */ public class SnackbarContentLayout extends LinearLayout { /* renamed from: a, reason: collision with root package name */ private TextView f4639a; /* renamed from: b, reason: collision with root package name */ private Button f4640b; /* renamed from: c, reason: collision with root package name */ private int f4641c; /* renamed from: d, reason: collision with root package name */ private int f4642d; public SnackbarContentLayout(Context context, AttributeSet attributeSet) { super(context, attributeSet); TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, j.J2); this.f4641c = obtainStyledAttributes.getDimensionPixelSize(j.K2, -1); this.f4642d = obtainStyledAttributes.getDimensionPixelSize(j.P2, -1); obtainStyledAttributes.recycle(); } private static void a(View view, int i10, int i11) { if (n0.T(view)) { n0.z0(view, n0.G(view), i10, n0.F(view), i11); } else { view.setPadding(view.getPaddingLeft(), i10, view.getPaddingRight(), i11); } } private boolean b(int i10, int i11, int i12) { boolean z10; if (i10 != getOrientation()) { setOrientation(i10); z10 = true; } else { z10 = false; } if (this.f4639a.getPaddingTop() == i11 && this.f4639a.getPaddingBottom() == i12) { return z10; } a(this.f4639a, i11, i12); return true; } public Button getActionView() { return this.f4640b; } public TextView getMessageView() { return this.f4639a; } @Override // android.view.View protected void onFinishInflate() { super.onFinishInflate(); this.f4639a = (TextView) findViewById(c3.e.f3520t); this.f4640b = (Button) findViewById(c3.e.f3519s); } /* JADX WARN: Code restructure failed: missing block: B:15:0x0053, code lost: if (b(1, r0, r0 - r1) != false) goto L24; */ /* JADX WARN: Code restructure failed: missing block: B:21:0x0060, code lost: r3 = true; */ /* JADX WARN: Code restructure failed: missing block: B:25:0x005e, code lost: if (b(0, r0, r0) != false) goto L24; */ @Override // android.widget.LinearLayout, android.view.View /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ protected void onMeasure(int r8, int r9) { /* r7 = this; super.onMeasure(r8, r9) int r0 = r7.f4641c if (r0 <= 0) goto L18 int r0 = r7.getMeasuredWidth() int r1 = r7.f4641c if (r0 <= r1) goto L18 r8 = 1073741824(0x40000000, float:2.0) int r8 = android.view.View.MeasureSpec.makeMeasureSpec(r1, r8) super.onMeasure(r8, r9) L18: android.content.res.Resources r0 = r7.getResources() int r1 = c3.c.f3475d int r0 = r0.getDimensionPixelSize(r1) android.content.res.Resources r1 = r7.getResources() int r2 = c3.c.f3474c int r1 = r1.getDimensionPixelSize(r2) android.widget.TextView r2 = r7.f4639a android.text.Layout r2 = r2.getLayout() int r2 = r2.getLineCount() r3 = 0 r4 = 1 if (r2 <= r4) goto L3c r2 = 1 goto L3d L3c: r2 = 0 L3d: if (r2 == 0) goto L56 int r5 = r7.f4642d if (r5 <= 0) goto L56 android.widget.Button r5 = r7.f4640b int r5 = r5.getMeasuredWidth() int r6 = r7.f4642d if (r5 <= r6) goto L56 int r1 = r0 - r1 boolean r0 = r7.b(r4, r0, r1) if (r0 == 0) goto L61 goto L60 L56: if (r2 == 0) goto L59 goto L5a L59: r0 = r1 L5a: boolean r0 = r7.b(r3, r0, r0) if (r0 == 0) goto L61 L60: r3 = 1 L61: if (r3 == 0) goto L66 super.onMeasure(r8, r9) L66: return */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.snackbar.SnackbarContentLayout.onMeasure(int, int):void"); } }