what-the-bank/sources/o/rZU.java

65 lines
1.9 KiB
Java

package o;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.PopupWindow;
import o.SYO;
/* loaded from: classes.dex */
class rZU extends PopupWindow {
private static final boolean a = false;
private boolean d;
public rZU(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
gw_(context, attributeSet, i, 0);
}
public rZU(Context context, AttributeSet attributeSet, int i, int i2) {
super(context, attributeSet, i, i2);
gw_(context, attributeSet, i, i2);
}
private void gw_(Context context, AttributeSet attributeSet, int i, int i2) {
C0683McA c0683McA = new C0683McA(context, context.obtainStyledAttributes(attributeSet, SYO.ZqN.PopupWindow, i, i2));
if (c0683McA.d.hasValue(SYO.ZqN.PopupWindow_overlapAnchor)) {
b(c0683McA.d.getBoolean(SYO.ZqN.PopupWindow_overlapAnchor, false));
}
setBackgroundDrawable(c0683McA.jL_(SYO.ZqN.PopupWindow_android_popupBackground));
c0683McA.d.recycle();
}
@Override // android.widget.PopupWindow
public void showAsDropDown(View view, int i, int i2) {
if (a && this.d) {
i2 -= view.getHeight();
}
super.showAsDropDown(view, i, i2);
}
@Override // android.widget.PopupWindow
public void showAsDropDown(View view, int i, int i2, int i3) {
if (a && this.d) {
i2 -= view.getHeight();
}
super.showAsDropDown(view, i, i2, i3);
}
@Override // android.widget.PopupWindow
public void update(View view, int i, int i2, int i3, int i4) {
if (a && this.d) {
i2 -= view.getHeight();
}
super.update(view, i, i2, i3, i4);
}
private void b(boolean z) {
if (a) {
this.d = z;
} else {
C16030kbh.vI_(this, z);
}
}
}