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.
73 lines
2.0 KiB
73 lines
2.0 KiB
package p028j;
|
|
|
|
import android.content.Context;
|
|
import android.os.Build;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.widget.PopupWindow;
|
|
import p007c.C0494j;
|
|
import p032k0.C1346z;
|
|
|
|
/* renamed from: j.s */
|
|
/* loaded from: classes.dex */
|
|
public class C1193s extends PopupWindow {
|
|
|
|
/* renamed from: b */
|
|
public static final boolean f2891b;
|
|
|
|
/* renamed from: a */
|
|
public boolean f2892a;
|
|
|
|
static {
|
|
f2891b = Build.VERSION.SDK_INT < 21;
|
|
}
|
|
|
|
public C1193s(Context context, AttributeSet attributeSet, int i, int i2) {
|
|
super(context, attributeSet, i, i2);
|
|
m1893a(context, attributeSet, i, i2);
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public final void m1893a(Context context, AttributeSet attributeSet, int i, int i2) {
|
|
C1106g3 m2160u = C1106g3.m2160u(context, attributeSet, C0494j.f1795Y1, i, i2);
|
|
int i3 = C0494j.f1804a2;
|
|
if (m2160u.m2163r(i3)) {
|
|
m1892b(m2160u.m2180a(i3, false));
|
|
}
|
|
setBackgroundDrawable(m2160u.m2175f(C0494j.f1799Z1));
|
|
m2160u.m2159v();
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public final void m1892b(boolean z) {
|
|
if (f2891b) {
|
|
this.f2892a = z;
|
|
} else {
|
|
C1346z.m1585a(this, z);
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.PopupWindow
|
|
public void showAsDropDown(View view, int i, int i2) {
|
|
if (f2891b && this.f2892a) {
|
|
i2 -= view.getHeight();
|
|
}
|
|
super.showAsDropDown(view, i, i2);
|
|
}
|
|
|
|
@Override // android.widget.PopupWindow
|
|
public void showAsDropDown(View view, int i, int i2, int i3) {
|
|
if (f2891b && this.f2892a) {
|
|
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 (f2891b && this.f2892a) {
|
|
i2 -= view.getHeight();
|
|
}
|
|
super.update(view, i, i2, i3, i4);
|
|
}
|
|
} |