package o;

import android.view.View;
import android.view.ViewGroup;
import android.widget.PopupWindow;
import java.util.WeakHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class I7 extends C80 {
    public final /* synthetic */ int k;
    public final /* synthetic */ Object l;

    public /* synthetic */ I7(int i, Object obj) {
        this.k = i;
        this.l = obj;
    }

    @Override // o.InterfaceC1888mk0
    public final void a() {
        int i = this.k;
        Object obj = this.l;
        switch (i) {
            case 0:
                S7 s7 = ((G7) obj).m;
                s7.G.setAlpha(1.0f);
                s7.J.d(null);
                s7.J = null;
                break;
            case 1:
                S7 s72 = (S7) obj;
                s72.G.setAlpha(1.0f);
                s72.J.d(null);
                s72.J = null;
                break;
            default:
                S7 s73 = (S7) ((Gm0) obj).n;
                s73.G.setVisibility(8);
                PopupWindow popupWindow = s73.H;
                if (popupWindow != null) {
                    popupWindow.dismiss();
                } else if (s73.G.getParent() instanceof View) {
                    View view = (View) s73.G.getParent();
                    WeakHashMap weakHashMap = Oj0.a;
                    Ej0.c(view);
                }
                s73.G.e();
                s73.J.d(null);
                s73.J = null;
                ViewGroup viewGroup = s73.L;
                WeakHashMap weakHashMap2 = Oj0.a;
                Ej0.c(viewGroup);
                break;
        }
    }

    @Override // o.C80, o.InterfaceC1888mk0
    public void c() {
        int i = this.k;
        Object obj = this.l;
        switch (i) {
            case 0:
                ((G7) obj).m.G.setVisibility(0);
                break;
            case 1:
                S7 s7 = (S7) obj;
                s7.G.setVisibility(0);
                if (s7.G.getParent() instanceof View) {
                    View view = (View) s7.G.getParent();
                    WeakHashMap weakHashMap = Oj0.a;
                    Ej0.c(view);
                    break;
                }
                break;
        }
    }
}
