package l1;

import G0.InterfaceC0279y;
import J0.RunnableC0394y;
import android.os.Handler;
import android.os.Looper;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class k extends kotlin.jvm.internal.p implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f20187a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ y f20188b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ k(y yVar, int i6) {
        super(1);
        this.f20187a = i6;
        this.f20188b = yVar;
    }

    @Override // J4.c
    public final Object invoke(Object obj) throws Throwable {
        switch (this.f20187a) {
            case 0:
                InterfaceC0279y interfaceC0279yV = ((InterfaceC0279y) obj).V();
                kotlin.jvm.internal.o.e(interfaceC0279yV);
                this.f20188b.i(interfaceC0279yV);
                break;
            case 1:
                h1.l lVar = new h1.l(((h1.l) obj).f16627a);
                y yVar = this.f20188b;
                yVar.m1206setPopupContentSizefhxjrPA(lVar);
                yVar.j();
                break;
            default:
                J4.a aVar = (J4.a) obj;
                y yVar2 = this.f20188b;
                Handler handler = yVar2.getHandler();
                if ((handler != null ? handler.getLooper() : null) == Looper.myLooper()) {
                    aVar.invoke();
                } else {
                    Handler handler2 = yVar2.getHandler();
                    if (handler2 != null) {
                        handler2.post(new RunnableC0394y(aVar, 8));
                    }
                }
                break;
        }
        return C3137A.f25453a;
    }
}
