package ca.canadapost.module.selfscan;

import android.os.Bundle;
import androidx.databinding.n;
import androidx.fragment.app.f;
import androidx.navigation.fragment.NavHostFragment;
import bf.c;
import ca.canadapost.core.common.navigation.ui.b;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import m8.i;
import o8.l;
import v4.j;
import y4.d;

@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\r\u0010\u000eJ\b\u0010\u0003\u001a\u00020\u0002H\u0002J\u0012\u0010\u0006\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0014J\b\u0010\b\u001a\u00020\u0007H\u0016R\u0016\u0010\f\u001a\u00020\t8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\n\u0010\u000b¨\u0006\u000f"}, d2 = {"Lca/canadapost/module/selfscan/SelfScanActivity;", "Lca/canadapost/core/common/navigation/ui/b;", "Lrm/n0;", "y0", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "Lm8/i;", "d", "Lbf/c;", "I", "Lbf/c;", "binding", "<init>", "()V", "selfscan_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class SelfScanActivity extends b {

    /* renamed from: I, reason: from kotlin metadata */
    private c binding;

    private final void y0() {
        f k02 = getSupportFragmentManager().k0(af.c.J);
        t.e(k02, "null cannot be cast to non-null type androidx.navigation.fragment.NavHostFragment");
        j A = ((NavHostFragment) k02).A();
        A.p(new l(this, k0(), new d.a(A.D()).a()));
    }

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

    /* 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 = androidx.databinding.f.j(this, af.d.f350b);
        t.f(j10, "setContentView(...)");
        c cVar = (c) j10;
        this.binding = cVar;
        c cVar2 = null;
        if (cVar == null) {
            t.y("binding");
            cVar = null;
        }
        cVar.U(k0());
        c cVar3 = this.binding;
        if (cVar3 == null) {
            t.y("binding");
            cVar3 = null;
        }
        cVar3.O(this);
        c cVar4 = this.binding;
        if (cVar4 == null) {
            t.y("binding");
        } else {
            cVar2 = cVar4;
        }
        v0(cVar2.A.B);
        N(m0());
        y0();
    }
}
