NetMirror.apk
Download file
package androidx.appcompat.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import java.lang.ref.WeakReference;
/* JADX INFO: loaded from: classes.dex */
public final class ViewStubCompat extends View {
/* JADX INFO: renamed from: b, reason: collision with root package name */
private int f4026b;
/* JADX INFO: renamed from: c, reason: collision with root package name */
private int f4027c;
/* JADX INFO: renamed from: d, reason: collision with root package name */
private WeakReference f4028d;
/* JADX INFO: renamed from: e, reason: collision with root package name */
private LayoutInflater f4029e;
public interface a {
}
public ViewStubCompat(Context context, AttributeSet attributeSet) {
this(context, attributeSet, 0);
}
public View a() {
ViewParent parent = getParent();
if (!(parent instanceof ViewGroup)) {
throw new IllegalStateException("ViewStub must have a non-null ViewGroup viewParent");
}
if (this.f4026b == 0) {
throw new IllegalArgumentException("ViewStub must have a valid layoutResource");
}
ViewGroup viewGroup = (ViewGroup) parent;
LayoutInflater layoutInflaterFrom = this.f4029e;
if (layoutInflaterFrom == null) {
layoutInflaterFrom = LayoutInflater.from(getContext());
}
View viewInflate = layoutInflaterFrom.inflate(this.f4026b, viewGroup, false);
int i3 = this.f4027c;
if (i3 != -1) {
viewInflate.setId(i3);
}
int iIndexOfChild = viewGroup.indexOfChild(this);
viewGroup.removeViewInLayout(this);
ViewGroup.LayoutParams layoutParams = getLayoutParams();
if (layoutParams != null) {
viewGroup.addView(viewInflate, iIndexOfChild, layoutParams);
} else {
viewGroup.addView(viewInflate, iIndexOfChild);
}
this.f4028d = new WeakReference(viewInflate);
return viewInflate;
}
@Override // android.view.View
protected void dispatchDraw(Canvas canvas) {
}
@Override // android.view.View
public void draw(Canvas canvas) {
}
public int getInflatedId() {
return this.f4027c;
}
public LayoutInflater getLayoutInflater() {
return this.f4029e;
}
public int getLayoutResource() {
return this.f4026b;
}
@Override // android.view.View
protected void onMeasure(int i3, int i4) {
setMeasuredDimension(0, 0);
}
public void setInflatedId(int i3) {
this.f4027c = i3;
}
public void setLayoutInflater(LayoutInflater layoutInflater) {
this.f4029e = layoutInflater;
}
public void setLayoutResource(int i3) {
this.f4026b = i3;
}
public void setOnInflateListener(a aVar) {
}
@Override // android.view.View
public void setVisibility(int i3) {
WeakReference weakReference = this.f4028d;
if (weakReference != null) {
View view = (View) weakReference.get();
if (view == null) {
throw new IllegalStateException("setVisibility called on un-referenced view");
}
view.setVisibility(i3);
return;
}
super.setVisibility(i3);
if (i3 == 0 || i3 == 4) {
a();
}
}
public ViewStubCompat(Context context, AttributeSet attributeSet, int i3) {
super(context, attributeSet, i3);
this.f4026b = 0;
TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, d.j.O3, i3, 0);
this.f4027c = typedArrayObtainStyledAttributes.getResourceId(d.j.R3, -1);
this.f4026b = typedArrayObtainStyledAttributes.getResourceId(d.j.Q3, 0);
setId(typedArrayObtainStyledAttributes.getResourceId(d.j.P3, -1));
typedArrayObtainStyledAttributes.recycle();
setVisibility(8);
setWillNotDraw(true);
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file