package o;

import android.view.MenuItem;
import android.view.Window;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Sf0 implements Qf0, AO {
    public final /* synthetic */ Tf0 l;

    public /* synthetic */ Sf0(Tf0 tf0) {
        this.l = tf0;
    }

    @Override // o.AO
    public boolean l(CO co, MenuItem menuItem) {
        return false;
    }

    @Override // o.AO
    public void s(CO co) {
        Tf0 tf0 = this.l;
        Window.Callback callback = tf0.b;
        if (tf0.a.a.p()) {
            callback.onPanelClosed(108, co);
        } else if (callback.onPreparePanel(0, null, co)) {
            callback.onMenuOpened(108, co);
        }
    }
}
