package o;

import android.os.Handler;
import android.os.Looper;
import android.view.ActionMode;
import android.view.View;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.s5, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C2400s5 implements OC {
    public final /* synthetic */ int l;
    public final /* synthetic */ A5 m;

    public /* synthetic */ C2400s5(A5 a5, int i) {
        this.l = i;
        this.m = a5;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        switch (this.l) {
            case 0:
                NC nc = (NC) obj;
                View view = this.m.a;
                Handler handler = view.getHandler();
                if ((handler != null ? handler.getLooper() : null) == Looper.myLooper()) {
                    nc.a();
                } else {
                    Handler handler2 = view.getHandler();
                    if (handler2 != null) {
                        handler2.post(new J1(2, nc));
                    }
                }
                return Oh0.a;
            case 1:
                ActionMode actionMode = this.m.h;
                if (actionMode != null) {
                    actionMode.invalidate();
                }
                return Oh0.a;
            case 2:
                ActionMode actionMode2 = this.m.h;
                if (actionMode2 != null) {
                    actionMode2.invalidateContentRect();
                }
                return Oh0.a;
            default:
                A5 a5 = this.m;
                a5.e.d();
                return new H1(4, a5);
        }
    }
}
