package p037.p112;

import android.annotation.SuppressLint;
import android.os.Bundle;
import androidx.savedstate.Recreator;
import p037.p052.p053.p055.C1706;
import p138.p139.p143.p144.C2803;

/* JADX INFO: renamed from: މ.ޑ.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@SuppressLint({"RestrictedApi"})
public final class C2430 {

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public Bundle f7703;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public boolean f7704;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public Recreator.C0236 f7705;

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C1706<String, InterfaceC2432> f7702 = new C1706<>();

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public boolean f7706 = true;

    /* JADX INFO: renamed from: މ.ޑ.ؠ$֏, reason: contains not printable characters */
    public interface InterfaceC2431 {
        /* JADX INFO: renamed from: ֏ */
        void mo356(InterfaceC2434 interfaceC2434);
    }

    /* JADX INFO: renamed from: މ.ޑ.ؠ$ؠ, reason: contains not printable characters */
    public interface InterfaceC2432 {
        /* JADX INFO: renamed from: ֏ */
        Bundle mo815();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public Bundle m4512(String str) {
        if (!this.f7704) {
            throw new IllegalStateException("You can consumeRestoredStateForKey only after super.onCreate of corresponding component");
        }
        Bundle bundle = this.f7703;
        if (bundle == null) {
            return null;
        }
        Bundle bundle2 = bundle.getBundle(str);
        this.f7703.remove(str);
        if (this.f7703.isEmpty()) {
            this.f7703 = null;
        }
        return bundle2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m4513(Class<? extends InterfaceC2431> cls) {
        if (!this.f7706) {
            throw new IllegalStateException("Can not perform this action after onSaveInstanceState");
        }
        if (this.f7705 == null) {
            this.f7705 = new Recreator.C0236(this);
        }
        try {
            cls.getDeclaredConstructor(new Class[0]);
            Recreator.C0236 c0236 = this.f7705;
            c0236.f1407.add(cls.getName());
        } catch (NoSuchMethodException e) {
            StringBuilder sbM4889 = C2803.m4889("Class");
            sbM4889.append(cls.getSimpleName());
            sbM4889.append(" must have default constructor in order to be automatically recreated");
            throw new IllegalArgumentException(sbM4889.toString(), e);
        }
    }
}
