package p067w;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import androidx.lifecycle.AbstractC0424i;
import androidx.lifecycle.C0435n;
import androidx.lifecycle.FragmentC0449w;
import androidx.lifecycle.InterfaceC0434m;
import p023h0.C0944s;
import p037m.C1457g;

/* renamed from: w.j */
/* loaded from: classes.dex */
public class ActivityC1780j extends Activity implements InterfaceC0434m, C0944s.InterfaceC0945a {

    /* renamed from: d */
    public C1457g<Class<Object>, Object> f4501d = new C1457g<>();

    /* renamed from: e */
    public C0435n f4502e = new C0435n(this);

    /* renamed from: a */
    public AbstractC0424i mo421a() {
        return this.f4502e;
    }

    @Override // android.app.Activity, android.view.Window.Callback
    public boolean dispatchKeyEvent(KeyEvent keyEvent) {
        View decorView = getWindow().getDecorView();
        if (decorView == null || !C0944s.m2499d(decorView, keyEvent)) {
            return C0944s.m2498e(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 || !C0944s.m2499d(decorView, keyEvent)) {
            return super.dispatchKeyShortcutEvent(keyEvent);
        }
        return true;
    }

    @Override // p023h0.C0944s.InterfaceC0945a
    /* renamed from: f */
    public boolean mo420f(KeyEvent keyEvent) {
        return super.dispatchKeyEvent(keyEvent);
    }

    @Override // android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        FragmentC0449w.m3653g(this);
    }

    @Override // android.app.Activity
    public void onSaveInstanceState(Bundle bundle) {
        this.f4502e.m3684j(AbstractC0424i.EnumC0427c.CREATED);
        super.onSaveInstanceState(bundle);
    }
}