package o;

import android.os.Handler;
import android.os.Looper;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.a5, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0686a5 extends AbstractC0706aK implements OC {
    public final /* synthetic */ int m;
    public final /* synthetic */ UX n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C0686a5(UX ux, int i) {
        super(1);
        this.m = i;
        this.n = ux;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        switch (this.m) {
            case 0:
                this.n.l(((InterfaceC1184fK) obj).l());
                break;
            case 1:
                C1470iI c1470iI = new C1470iI(((C1470iI) obj).a);
                UX ux = this.n;
                ux.m1setPopupContentSizefhxjrPA(c1470iI);
                ux.m();
                break;
            default:
                NC nc = (NC) obj;
                UX ux2 = this.n;
                Handler handler = ux2.getHandler();
                if ((handler != null ? handler.getLooper() : null) == Looper.myLooper()) {
                    nc.a();
                } else {
                    Handler handler2 = ux2.getHandler();
                    if (handler2 != null) {
                        handler2.post(new J1(5, nc));
                    }
                }
                break;
        }
        return Oh0.a;
    }
}
