package ca.canadapost.module.epostprofile;

import android.os.Bundle;
import android.view.View;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.f;
import androidx.databinding.n;
import androidx.fragment.app.FragmentContainerView;
import androidx.navigation.fragment.NavHostFragment;
import ca.canadapost.core.common.navigation.ui.b;
import ca.canadapost.module.epostprofile.SetNForgetSubscriptionActivity;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import m8.i;
import o8.l;
import ob.j;
import ob.k;
import w8.d0;
import y4.d;
import zb.m0;

@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\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\f\u0010\rJ\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\n¨\u0006\u000e"}, d2 = {"Lca/canadapost/module/epostprofile/SetNForgetSubscriptionActivity;", "Lca/canadapost/core/common/navigation/ui/b;", "Landroid/os/Bundle;", "savedInstanceState", "Lrm/n0;", "onCreate", "Lm8/i;", "d", "Lzb/m0;", "I", "Lzb/m0;", "binding", "<init>", "()V", "epostprofile_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class SetNForgetSubscriptionActivity extends b {

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

    /* JADX INFO: Access modifiers changed from: private */
    public static final void z0(SetNForgetSubscriptionActivity this$0, View view) {
        t.g(this$0, "this$0");
        this$0.onBackPressed();
    }

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

    /* 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.f31233t);
        t.f(j10, "setContentView(...)");
        m0 m0Var = (m0) j10;
        this.binding = m0Var;
        m0 m0Var2 = null;
        if (m0Var == null) {
            t.y("binding");
            m0Var = null;
        }
        m0Var.O(this);
        m0 m0Var3 = this.binding;
        if (m0Var3 == null) {
            t.y("binding");
            m0Var3 = null;
        }
        v0(m0Var3.A.B);
        N(m0());
        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.i0(k.f31241b);
        d a10 = new d.a(A.D()).a();
        Toolbar m02 = m0();
        if (m02 != null) {
            y4.i.a(m02, A, a10);
            m02.setNavigationOnClickListener(new View.OnClickListener() { // from class: ob.m
                @Override // android.view.View.OnClickListener
                public final void onClick(View view) {
                    SetNForgetSubscriptionActivity.z0(SetNForgetSubscriptionActivity.this, view);
                }
            });
        }
        A.p(new l(this, k0(), a10));
        m0 m0Var4 = this.binding;
        if (m0Var4 == null) {
            t.y("binding");
        } else {
            m0Var2 = m0Var4;
        }
        FragmentContainerView navHostFragment = m0Var2.B;
        t.f(navHostFragment, "navHostFragment");
        d0.i(navHostFragment);
    }
}
