package androidx.core.app; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import androidx.core.view.t; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.e; /* loaded from: classes.dex */ public abstract class j extends Activity implements LifecycleOwner, t.a { private androidx.collection.g mExtraDataMap = new androidx.collection.g(); private androidx.lifecycle.i mLifecycleRegistry = new androidx.lifecycle.i(this); public static class a { } @Override // android.app.Activity, android.view.Window.Callback public boolean dispatchKeyEvent(KeyEvent keyEvent) { View decorView = getWindow().getDecorView(); if (decorView == null || !androidx.core.view.t.d(decorView, keyEvent)) { return androidx.core.view.t.e(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 || !androidx.core.view.t.d(decorView, keyEvent)) { return super.dispatchKeyShortcutEvent(keyEvent); } return true; } @Deprecated public T getExtraData(Class cls) { androidx.appcompat.app.m.a(this.mExtraDataMap.get(cls)); return null; } @Override // android.app.Activity protected void onCreate(Bundle bundle) { super.onCreate(bundle); androidx.lifecycle.p.g(this); } @Override // android.app.Activity protected void onSaveInstanceState(Bundle bundle) { this.mLifecycleRegistry.j(e.c.CREATED); super.onSaveInstanceState(bundle); } @Deprecated public void putExtraData(a aVar) { throw null; } @Override // androidx.core.view.t.a public boolean superDispatchKeyEvent(KeyEvent keyEvent) { return super.dispatchKeyEvent(keyEvent); } }