package defpackage;

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

/* JADX INFO: renamed from: ᵪᵚﹳᵢ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class C3911 implements InterfaceC2222 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final /* synthetic */ AbstractActivityC3895 f14938;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final /* synthetic */ int f14939;

    public /* synthetic */ C3911(AbstractActivityC3895 abstractActivityC3895, int i) {
        this.f14939 = i;
        this.f14938 = abstractActivityC3895;
    }

    @Override // defpackage.InterfaceC2222
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final void mo5810() {
        int i = this.f14939;
        AbstractActivityC3895 abstractActivityC3895 = this.f14938;
        switch (i) {
            case 0:
                Bundle bundleM4743 = ((C1709) abstractActivityC3895.f14879.f14142).m4743("android:support:activity-result");
                if (bundleM4743 != null) {
                    C2358 c2358 = abstractActivityC3895.f14865;
                    HashMap map = c2358.f9243;
                    HashMap map2 = c2358.f9247;
                    Bundle bundle = c2358.f9248;
                    ArrayList<Integer> integerArrayList = bundleM4743.getIntegerArrayList("KEY_COMPONENT_ACTIVITY_REGISTERED_RCS");
                    ArrayList<String> stringArrayList = bundleM4743.getStringArrayList("KEY_COMPONENT_ACTIVITY_REGISTERED_KEYS");
                    if (stringArrayList != null && integerArrayList != null) {
                        c2358.f9249 = bundleM4743.getStringArrayList("KEY_COMPONENT_ACTIVITY_LAUNCHED_KEYS");
                        bundle.putAll(bundleM4743.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);
                            c2358.f9243.put(str2, num2);
                        }
                        break;
                    }
                }
                break;
            default:
                C1734 c1734 = (C1734) ((AbstractActivityC2057) abstractActivityC3895).f8154.ˌᴵ;
                c1734.f6945.m2355(c1734, c1734, null);
                break;
        }
    }
}
