mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
48 lines
1.8 KiB
Java
48 lines
1.8 KiB
Java
|
package androidx.constraintlayout.solver.widgets;
|
||
|
|
||
|
import java.util.Arrays;
|
||
|
import java.util.HashMap;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class HelperWidget extends ConstraintWidget implements Helper {
|
||
|
public ConstraintWidget[] mWidgets = new ConstraintWidget[4];
|
||
|
public int mWidgetsCount = 0;
|
||
|
|
||
|
@Override // androidx.constraintlayout.solver.widgets.Helper
|
||
|
public void updateConstraints(ConstraintWidgetContainer constraintWidgetContainer) {
|
||
|
}
|
||
|
|
||
|
@Override // androidx.constraintlayout.solver.widgets.Helper
|
||
|
public void add(ConstraintWidget constraintWidget) {
|
||
|
if (constraintWidget == this || constraintWidget == null) {
|
||
|
return;
|
||
|
}
|
||
|
int i = this.mWidgetsCount + 1;
|
||
|
ConstraintWidget[] constraintWidgetArr = this.mWidgets;
|
||
|
if (i > constraintWidgetArr.length) {
|
||
|
this.mWidgets = (ConstraintWidget[]) Arrays.copyOf(constraintWidgetArr, constraintWidgetArr.length * 2);
|
||
|
}
|
||
|
ConstraintWidget[] constraintWidgetArr2 = this.mWidgets;
|
||
|
int i2 = this.mWidgetsCount;
|
||
|
constraintWidgetArr2[i2] = constraintWidget;
|
||
|
this.mWidgetsCount = i2 + 1;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
|
||
|
public void copy(ConstraintWidget constraintWidget, HashMap<ConstraintWidget, ConstraintWidget> hashMap) {
|
||
|
super.copy(constraintWidget, hashMap);
|
||
|
HelperWidget helperWidget = (HelperWidget) constraintWidget;
|
||
|
this.mWidgetsCount = 0;
|
||
|
int i = helperWidget.mWidgetsCount;
|
||
|
for (int i2 = 0; i2 < i; i2++) {
|
||
|
add(hashMap.get(helperWidget.mWidgets[i2]));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.constraintlayout.solver.widgets.Helper
|
||
|
public void removeAllIds() {
|
||
|
this.mWidgetsCount = 0;
|
||
|
Arrays.fill(this.mWidgets, (Object) null);
|
||
|
}
|
||
|
}
|