package o;

import android.view.ViewTreeObserver;
import android.widget.PopupWindow;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.p8, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2122p8 implements PopupWindow.OnDismissListener {
    public final /* synthetic */ ViewTreeObserverOnGlobalLayoutListenerC1647k8 l;
    public final /* synthetic */ C2217q8 m;

    public C2122p8(C2217q8 c2217q8, ViewTreeObserverOnGlobalLayoutListenerC1647k8 viewTreeObserverOnGlobalLayoutListenerC1647k8) {
        this.m = c2217q8;
        this.l = viewTreeObserverOnGlobalLayoutListenerC1647k8;
    }

    @Override // android.widget.PopupWindow.OnDismissListener
    public final void onDismiss() {
        ViewTreeObserver viewTreeObserver = this.m.R.getViewTreeObserver();
        if (viewTreeObserver != null) {
            viewTreeObserver.removeGlobalOnLayoutListener(this.l);
        }
    }
}
