package defpackage;

import android.os.Bundle;
import java.util.ArrayList;
import java.util.HashMap;

/* renamed from: ˑי, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final /* synthetic */ class C2061 implements InterfaceC0610 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final /* synthetic */ int f8230;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final /* synthetic */ AbstractActivityC5046 f8231;

    public /* synthetic */ C2061(AbstractActivityC5046 abstractActivityC5046, int i) {
        this.f8230 = i;
        this.f8231 = abstractActivityC5046;
    }

    @Override // defpackage.InterfaceC0610
    /* renamed from: ᵥᵯˎ */
    public final void mo2499() {
        int i = this.f8230;
        AbstractActivityC5046 abstractActivityC5046 = this.f8231;
        switch (i) {
            case 0:
                Bundle bundleM11190 = ((C5553) abstractActivityC5046.f18856.ᵿʗᵝʽ).m11190("android:support:activity-result");
                if (bundleM11190 != null) {
                    C5371 c5371 = abstractActivityC5046.f18858;
                    HashMap map = c5371.f20144;
                    HashMap map2 = c5371.f20143;
                    Bundle bundle = c5371.f20140;
                    ArrayList<Integer> integerArrayList = bundleM11190.getIntegerArrayList("KEY_COMPONENT_ACTIVITY_REGISTERED_RCS");
                    ArrayList<String> stringArrayList = bundleM11190.getStringArrayList("KEY_COMPONENT_ACTIVITY_REGISTERED_KEYS");
                    if (stringArrayList != null && integerArrayList != null) {
                        c5371.f20146 = bundleM11190.getStringArrayList("KEY_COMPONENT_ACTIVITY_LAUNCHED_KEYS");
                        bundle.putAll(bundleM11190.getBundle("KEY_COMPONENT_ACTIVITY_PENDING_RESULT"));
                        for (int i2 = 0; i2 < stringArrayList.size(); i2++) {
                            String str = stringArrayList.get(i2);
                            if (map.containsKey(str)) {
                                Integer num = (Integer) map.remove(str);
                                if (!bundle.containsKey(str)) {
                                    map2.remove(num);
                                }
                            }
                            Integer num2 = integerArrayList.get(i2);
                            num2.intValue();
                            String str2 = stringArrayList.get(i2);
                            map2.put(num2, str2);
                            c5371.f20144.put(str2, num2);
                        }
                        break;
                    }
                }
                break;
            default:
                C0600 c0600 = (C0600) ((AbstractActivityC3177) abstractActivityC5046).f12046.f11366;
                c0600.f3054.m9939(c0600, c0600, null);
                break;
        }
    }
}
