package ca.canadapost.module.epostprofile;

import android.content.Intent;
import android.os.Bundle;
import androidx.databinding.f;
import androidx.databinding.n;
import androidx.lifecycle.c1;
import androidx.navigation.fragment.NavHostFragment;
import ca.canadapost.core.common.navigation.ui.b;
import ca.canadapost.core.data.model.CoreConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import m8.i;
import o8.l;
import ob.d;
import ob.j;
import ob.k;
import y4.d;
import zb.u2;

@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0010\u0010\u0011J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0014J\b\u0010\u0007\u001a\u00020\u0006H\u0016R\u0016\u0010\u000b\u001a\u00020\b8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\t\u0010\nR\u0016\u0010\u000f\u001a\u00020\f8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\r\u0010\u000e¨\u0006\u0012"}, d2 = {"Lca/canadapost/module/epostprofile/PreferenceActivity;", "Lca/canadapost/core/common/navigation/ui/b;", "Landroid/os/Bundle;", "savedInstanceState", "Lrm/n0;", "onCreate", "Lm8/i;", "d", "Lob/d;", "I", "Lob/d;", "viewModel", "Lzb/u2;", "J", "Lzb/u2;", "binding", "<init>", "()V", "epostprofile_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class PreferenceActivity extends b {

    /* renamed from: I, reason: from kotlin metadata */
    private d viewModel;

    /* renamed from: J, reason: from kotlin metadata */
    private u2 binding;

    @Override // m8.m
    public i d() {
        return i.NAV_PREFERENCE;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // ca.canadapost.core.common.navigation.ui.b, androidx.fragment.app.k, androidx.activity.h, androidx.core.app.f, android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        n j10 = f.j(this, j.X);
        t.f(j10, "setContentView(...)");
        this.binding = (u2) j10;
        this.viewModel = (d) new c1(this, n0()).a(d.class);
        u2 u2Var = this.binding;
        if (u2Var == null) {
            t.y("binding");
            u2Var = null;
        }
        d dVar = this.viewModel;
        if (dVar == null) {
            t.y("viewModel");
            dVar = null;
        }
        u2Var.U(dVar);
        u2 u2Var2 = this.binding;
        if (u2Var2 == null) {
            t.y("binding");
            u2Var2 = null;
        }
        u2Var2.O(this);
        u2 u2Var3 = this.binding;
        if (u2Var3 == null) {
            t.y("binding");
            u2Var3 = null;
        }
        v0(u2Var3.A.B);
        N(m0());
        Intent intent = getIntent();
        Bundle bundleExtra = intent != null ? intent.getBundleExtra(CoreConstants.FRAG_ARGS) : null;
        androidx.fragment.app.f k02 = getSupportFragmentManager().k0(ob.i.f31195x0);
        t.e(k02, "null cannot be cast to non-null type androidx.navigation.fragment.NavHostFragment");
        v4.j A = ((NavHostFragment) k02).A();
        A.j0(k.f31242c, bundleExtra);
        A.p(new l(this, k0(), new d.a(A.D()).a()));
    }
}
