<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/navigation_graph"
    app:startDestination="@id/homeFragment">

    <fragment
        android:id="@+id/homeFragment"
        android:name="com.yogeshpaliyal.keypass.ui.home.HomeFragment"
        android:label="HomeFragment"
        tools:layout="@layout/fragment_home">

    </fragment>
    <fragment
        android:id="@+id/detailFragment"
        android:name="com.yogeshpaliyal.keypass.ui.detail.DetailActivity"
        android:label="DetailFragment"
        tools:layout="@layout/fragment_detail">
        <argument android:name="accountId"
            android:defaultValue="-1L"
            app:argType="long"/>
    </fragment>


    <action
        android:id="@+id/action_global_homeFragment"
        app:destination="@+id/homeFragment"
        app:launchSingleTop="true"
        app:popUpTo="@+id/navigation_graph"
        app:popUpToInclusive="true"/>


    <action
        android:id="@+id/action_global_homeFragmentTag"
        app:destination="@+id/homeFragment"/>

    <action
        android:id="@+id/action_global_createFragment"
        app:destination="@+id/detailFragment" />

    <action
        android:id="@+id/action_global_settings"
        app:destination="@+id/mySettingsFragment" />

    <fragment
        android:id="@+id/mySettingsFragment"
        android:name="com.yogeshpaliyal.keypass.ui.settings.MySettingsFragment"
        android:label="MySettingsFragment" />

</navigation>