package androidx.core.app;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import androidx.lifecycle.Lifecycle;
import ῲ.ؿ.AbstractC1574;
import ῲ.ؿ.C1584;
import ῲ.ؿ.FragmentC1579;
import ῲ.ᨨ.ᨨ.C1729;
import ῲ.ᨨ.ᨨ.C1773;
import ῲ.㴹.C2288;

public class ComponentActivity extends Activity implements AbstractC1574, C1773.AbstractC1774 {
    public C2288<Class<? extends C0152>, C0152> mExtraDataMap = new C2288<>();
    public C1584 mLifecycleRegistry = new C1584(this);

    @Deprecated
    /* renamed from: androidx.core.app.ComponentActivity$K  reason: contains not printable characters */
    public static class C0152 {
    }

    public boolean dispatchKeyEvent(KeyEvent keyEvent) {
        View decorView = getWindow().getDecorView();
        if (decorView == null || !C1729.m4464(decorView, keyEvent)) {
            return C1773.m4623(this, decorView, this, keyEvent);
        }
        return true;
    }

    public boolean dispatchKeyShortcutEvent(KeyEvent keyEvent) {
        View decorView = getWindow().getDecorView();
        if (decorView == null || !C1729.m4464(decorView, keyEvent)) {
            return super.dispatchKeyShortcutEvent(keyEvent);
        }
        return true;
    }

    @Deprecated
    public <T extends C0152> T getExtraData(Class<T> cls) {
        return (T) this.mExtraDataMap.getOrDefault(cls, null);
    }

    @Override // ῲ.ؿ.AbstractC1574
    public Lifecycle getLifecycle() {
        return this.mLifecycleRegistry;
    }

    @SuppressLint({"RestrictedApi"})
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        FragmentC1579.m4129(this);
    }

    public void onSaveInstanceState(Bundle bundle) {
        this.mLifecycleRegistry.m4145(Lifecycle.State.CREATED);
        super.onSaveInstanceState(bundle);
    }

    /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: ῲ.㴹.㿎<java.lang.Class<? extends androidx.core.app.ComponentActivity$K>, androidx.core.app.ComponentActivity$K> */
    /* JADX WARN: Multi-variable type inference failed */
    @Deprecated
    public void putExtraData(C0152 k) {
        this.mExtraDataMap.put(k.getClass(), k);
    }

    @Override // ῲ.ᨨ.ᨨ.C1773.AbstractC1774
    public boolean superDispatchKeyEvent(KeyEvent keyEvent) {
        return super.dispatchKeyEvent(keyEvent);
    }
}
