package o;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;

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

    public C2404s7(C1640k40 c1640k40) {
        this.a = 1;
        this.b = new LinkedHashSet();
        c1640k40.c("androidx.savedstate.Restarter", this);
    }

    @Override // o.InterfaceC1545j40
    public final Bundle a() {
        switch (this.a) {
            case 0:
                Bundle bundle = new Bundle();
                ((AppCompatActivity) this.b).getDelegate().getClass();
                return bundle;
            default:
                Bundle bundleF = AbstractC0940cn0.f((C3001yV[]) Arrays.copyOf(new C3001yV[0], 0));
                List listT0 = AbstractC3117zi.t0((LinkedHashSet) this.b);
                bundleF.putStringArrayList("classes_to_restore", listT0 instanceof ArrayList ? (ArrayList) listT0 : new ArrayList<>(listT0));
                return bundleF;
        }
    }

    public C2404s7(AppCompatActivity appCompatActivity) {
        this.a = 0;
        this.b = appCompatActivity;
    }
}
