what-the-bank/sources/com/google/android/material/internal/VisibilityAwareImageButton....

37 lines
953 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.material.internal;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageButton;
/* loaded from: classes2.dex */
public class VisibilityAwareImageButton extends ImageButton {
public int i;
public VisibilityAwareImageButton(Context context) {
this(context, null);
}
public VisibilityAwareImageButton(Context context, AttributeSet attributeSet) {
this(context, attributeSet, 0);
}
public VisibilityAwareImageButton(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
this.i = getVisibility();
}
public final void c(int i, boolean z) {
super.setVisibility(i);
if (z) {
this.i = i;
}
}
@Override // android.widget.ImageView, android.view.View
public void setVisibility(int i) {
super.setVisibility(i);
this.i = i;
}
}