You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
3.0 KiB
88 lines
3.0 KiB
package p061u;
|
|
|
|
import android.content.res.TypedArray;
|
|
import android.os.Build;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.view.ViewParent;
|
|
import androidx.constraintlayout.widget.AbstractC0191c;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import p049q.C1559k;
|
|
|
|
/* renamed from: u.j */
|
|
/* loaded from: classes.dex */
|
|
public abstract class AbstractC1745j extends AbstractC0191c {
|
|
|
|
/* renamed from: m */
|
|
public boolean f4420m;
|
|
|
|
/* renamed from: n */
|
|
public boolean f4421n;
|
|
|
|
@Override // androidx.constraintlayout.widget.AbstractC0191c
|
|
/* renamed from: i */
|
|
public void mo481i(ConstraintLayout constraintLayout) {
|
|
m4550h(constraintLayout);
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.AbstractC0191c
|
|
/* renamed from: m */
|
|
public void mo480m(AttributeSet attributeSet) {
|
|
super.mo480m(attributeSet);
|
|
if (attributeSet != null) {
|
|
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, C1743h.f4303n1);
|
|
int indexCount = obtainStyledAttributes.getIndexCount();
|
|
for (int i = 0; i < indexCount; i++) {
|
|
int index = obtainStyledAttributes.getIndex(i);
|
|
if (index == C1743h.f4321p1) {
|
|
this.f4420m = true;
|
|
} else if (index == C1743h.f4366u1) {
|
|
this.f4421n = true;
|
|
}
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.AbstractC0191c, android.view.View
|
|
public void onAttachedToWindow() {
|
|
float translationZ;
|
|
super.onAttachedToWindow();
|
|
if (this.f4420m || this.f4421n) {
|
|
ViewParent parent = getParent();
|
|
if (parent instanceof ConstraintLayout) {
|
|
ConstraintLayout constraintLayout = (ConstraintLayout) parent;
|
|
int visibility = getVisibility();
|
|
float elevation = Build.VERSION.SDK_INT >= 21 ? getElevation() : 0.0f;
|
|
for (int i = 0; i < this.f849e; i++) {
|
|
View m4577k = constraintLayout.m4577k(this.f848d[i]);
|
|
if (m4577k != null) {
|
|
if (this.f4420m) {
|
|
m4577k.setVisibility(visibility);
|
|
}
|
|
if (this.f4421n && elevation > 0.0f && Build.VERSION.SDK_INT >= 21) {
|
|
translationZ = m4577k.getTranslationZ();
|
|
m4577k.setTranslationZ(translationZ + elevation);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setElevation(float f) {
|
|
super.setElevation(f);
|
|
m4551g();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setVisibility(int i) {
|
|
super.setVisibility(i);
|
|
m4551g();
|
|
}
|
|
|
|
/* renamed from: t */
|
|
public void m479t(C1559k c1559k, int i, int i2) {
|
|
}
|
|
} |