144 lines
4.4 KiB
Java
144 lines
4.4 KiB
Java
package androidx.constraintlayout.widget;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.util.AttributeSet;
|
|
import android.util.SparseArray;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import o.C17026tNn;
|
|
import o.C3345avm;
|
|
import o.NsV;
|
|
import o.WqU;
|
|
import o.kpn;
|
|
import o.yqQ;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class Barrier extends ConstraintHelper {
|
|
public kpn a;
|
|
public int d;
|
|
private int e;
|
|
|
|
public Barrier(Context context) {
|
|
super(context);
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Barrier(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Barrier(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x000f, code lost:
|
|
|
|
if (r6 == 6) goto L11;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x0019, code lost:
|
|
|
|
if (r6 == 6) goto L6;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private void a(o.C17026tNn r4, int r5, boolean r6) {
|
|
/*
|
|
r3 = this;
|
|
r3.e = r5
|
|
r5 = 1
|
|
r0 = 0
|
|
r1 = 6
|
|
r2 = 5
|
|
if (r6 == 0) goto L12
|
|
int r6 = r3.d
|
|
if (r6 != r2) goto Lf
|
|
Lc:
|
|
r3.e = r5
|
|
goto L1c
|
|
Lf:
|
|
if (r6 != r1) goto L1c
|
|
goto L16
|
|
L12:
|
|
int r6 = r3.d
|
|
if (r6 != r2) goto L19
|
|
L16:
|
|
r3.e = r0
|
|
goto L1c
|
|
L19:
|
|
if (r6 != r1) goto L1c
|
|
goto Lc
|
|
L1c:
|
|
boolean r5 = r4 instanceof o.kpn
|
|
if (r5 == 0) goto L26
|
|
o.kpn r4 = (o.kpn) r4
|
|
int r5 = r3.e
|
|
r4.c = r5
|
|
L26:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.constraintlayout.widget.Barrier.a(o.tNn, int, boolean):void");
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintHelper
|
|
public final void e(C17026tNn c17026tNn, boolean z) {
|
|
a(c17026tNn, this.d, z);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // androidx.constraintlayout.widget.ConstraintHelper
|
|
public final void lt_(AttributeSet attributeSet) {
|
|
super.lt_(attributeSet);
|
|
this.a = new kpn();
|
|
if (attributeSet != null) {
|
|
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, C3345avm.IeS.ConstraintLayout_Layout);
|
|
int indexCount = obtainStyledAttributes.getIndexCount();
|
|
for (int i = 0; i < indexCount; i++) {
|
|
int index = obtainStyledAttributes.getIndex(i);
|
|
if (index == C3345avm.IeS.ConstraintLayout_Layout_barrierDirection) {
|
|
setType(obtainStyledAttributes.getInt(index, 0));
|
|
} else if (index != C3345avm.IeS.ConstraintLayout_Layout_barrierAllowsGoneWidgets) {
|
|
if (index == C3345avm.IeS.ConstraintLayout_Layout_barrierMargin) {
|
|
this.a.a = obtainStyledAttributes.getDimensionPixelSize(index, 0);
|
|
}
|
|
} else {
|
|
this.a.e = obtainStyledAttributes.getBoolean(index, true);
|
|
}
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
this.b = this.a;
|
|
d();
|
|
}
|
|
|
|
public void setDpMargin(int i) {
|
|
this.a.a = (int) ((i * getResources().getDisplayMetrics().density) + 0.5f);
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintHelper
|
|
public final void le_(yqQ.Sts sts, NsV nsV, ConstraintLayout.Sts sts2, SparseArray<C17026tNn> sparseArray) {
|
|
super.le_(sts, nsV, sts2, sparseArray);
|
|
if (nsV instanceof kpn) {
|
|
kpn kpnVar = (kpn) nsV;
|
|
a(kpnVar, sts.a.Q, ((WqU) nsV.S).aq);
|
|
kpnVar.e = sts.a.O;
|
|
kpnVar.a = sts.a.S;
|
|
}
|
|
}
|
|
|
|
public void setAllowsGoneWidget(boolean z) {
|
|
this.a.e = z;
|
|
}
|
|
|
|
public void setMargin(int i) {
|
|
this.a.a = i;
|
|
}
|
|
|
|
public void setType(int i) {
|
|
this.d = i;
|
|
}
|
|
}
|