package o;

import android.window.OnBackInvokedCallback;
import java.lang.reflect.InvocationTargetException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.o7, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C2025o7 implements OnBackInvokedCallback {
    public final /* synthetic */ int a;
    public final /* synthetic */ Object b;

    public /* synthetic */ C2025o7(int i, Object obj) {
        this.a = i;
        this.b = obj;
    }

    public final void onBackInvoked() throws IllegalAccessException, NoSuchMethodException, SecurityException, IllegalArgumentException, InvocationTargetException {
        switch (this.a) {
            case 0:
                NC nc = (NC) this.b;
                if (nc != null) {
                    nc.a();
                    break;
                }
                break;
            case 1:
                ((S7) this.b).D();
                break;
            case 2:
                ((C2999yT) this.b).a();
                break;
            default:
                ((Runnable) this.b).run();
                break;
        }
    }
}
