package o;

import android.content.Context;
import android.os.Build;
import android.view.MenuItem;
import android.widget.PopupWindow;
import java.lang.reflect.Method;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.aP, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0711aP extends UL implements KO {
    public static final Method O;
    public OD N;

    static {
        try {
            if (Build.VERSION.SDK_INT <= 28) {
                O = PopupWindow.class.getDeclaredMethod("setTouchModal", Boolean.TYPE);
            }
        } catch (NoSuchMethodException unused) {
        }
    }

    @Override // o.UL
    public final C0097Dt a(Context context, boolean z) {
        ZO zo = new ZO(context, z);
        zo.setHoverListener(this);
        return zo;
    }

    @Override // o.KO
    public final void d(CO co, MenuItem menuItem) {
        OD od = this.N;
        if (od != null) {
            od.d(co, menuItem);
        }
    }

    @Override // o.KO
    public final void f(CO co, LO lo) {
        OD od = this.N;
        if (od != null) {
            od.f(co, lo);
        }
    }
}
