package androidx.core.app;

import X6FRs_4.IMuAHx_6.EuDEkJe_12.Mqv2r_3;
import X6FRs_4.KNBe_11.IFxWkV_5;
import X6FRs_4.KNBe_11.NQvZgp_17;
import X6FRs_4.KNBe_11.Xgtqvk_8;
import X6FRs_4.KNBe_11.XnFJ5_9;
import X6FRs_4.Mqv2r_3.IMuAHx_6;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
/* loaded from: classes.dex */
public class ComponentActivity extends Activity implements Xgtqvk_8, Mqv2r_3.KQgRr5e_0 {

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public IMuAHx_6<Class<? extends KQgRr5e_0>, KQgRr5e_0> f2222KQgRr5e_0 = new IMuAHx_6<>();
    public XnFJ5_9 KQgRr5e_0 = new XnFJ5_9(this);

    /* loaded from: classes.dex */
    public static class KQgRr5e_0 {
    }

    @Override // android.app.Activity, android.view.Window.Callback
    public boolean dispatchKeyEvent(KeyEvent keyEvent) {
        View decorView = getWindow().getDecorView();
        if (decorView == null || !Mqv2r_3.KQgRr5e_0(decorView, keyEvent)) {
            return Mqv2r_3.KQgRr5e_0(this, decorView, this, keyEvent);
        }
        return true;
    }

    @Override // android.app.Activity, android.view.Window.Callback
    public boolean dispatchKeyShortcutEvent(KeyEvent keyEvent) {
        View decorView = getWindow().getDecorView();
        if (decorView == null || !Mqv2r_3.KQgRr5e_0(decorView, keyEvent)) {
            return super.dispatchKeyShortcutEvent(keyEvent);
        }
        return true;
    }

    public <T extends KQgRr5e_0> T getExtraData(Class<T> cls) {
        return (T) this.f2222KQgRr5e_0.get(cls);
    }

    @Override // X6FRs_4.KNBe_11.Xgtqvk_8
    public IFxWkV_5 getLifecycle() {
        return this.KQgRr5e_0;
    }

    @Override // android.app.Activity
    @SuppressLint({"RestrictedApi"})
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        NQvZgp_17.m360KQgRr5e_0((Activity) this);
    }

    @Override // android.app.Activity
    public void onSaveInstanceState(Bundle bundle) {
        this.KQgRr5e_0.m362KQgRr5e_0(IFxWkV_5.QxJ9d_1.CREATED);
        super.onSaveInstanceState(bundle);
    }

    /* JADX WARN: Multi-variable type inference failed */
    public void putExtraData(KQgRr5e_0 kQgRr5e_0) {
        this.f2222KQgRr5e_0.put(kQgRr5e_0.getClass(), kQgRr5e_0);
    }

    @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.Mqv2r_3.KQgRr5e_0
    public boolean superDispatchKeyEvent(KeyEvent keyEvent) {
        return super.dispatchKeyEvent(keyEvent);
    }
}
