<?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"
    app:startDestination="@id/main_fragment">
    <fragment
        android:id="@+id/main_fragment"
        android:name="org.oxycblt.auxio.MainFragment"
        android:label="MainFragment"
        tools:layout="@layout/fragment_main">
        <action
            android:id="@+id/action_show_settings"
            app:destination="@id/settings_fragment" />
        <action
            android:id="@+id/action_show_about"
            app:destination="@id/about_fragment" />
        <action
            android:id="@+id/action_show_details"
            app:destination="@id/song_detail_dialog" />
        <action
            android:id="@+id/action_pick_artist"
            app:destination="@id/artist_picker_dialog" />
    </fragment>


    <dialog
        android:id="@+id/artist_picker_dialog"
        android:name="org.oxycblt.auxio.music.picker.ArtistPickerDialog"
        android:label="artist_picker_dialog"
        tools:layout="@layout/dialog_music_picker">
        <argument
            android:name="uid"
            app:argType="org.oxycblt.auxio.music.Music$UID" />
        <argument
            android:name="pickerMode"
            app:argType="org.oxycblt.auxio.music.picker.PickerMode" />
    </dialog>

    <dialog
        android:id="@+id/song_detail_dialog"
        android:name="org.oxycblt.auxio.detail.SongDetailDialog"
        android:label="song_detail_dialog"
        tools:layout="@layout/dialog_song_detail">
        <argument
            android:name="songUid"
            app:argType="org.oxycblt.auxio.music.Music$UID" />
    </dialog>

    <fragment
        android:id="@+id/settings_fragment"
        android:name="org.oxycblt.auxio.settings.SettingsFragment"
        android:label="fragment_settings"
        tools:layout="@layout/fragment_settings">
        <action
            android:id="@+id/go_to_accent_dialog"
            app:destination="@id/accent_dialog" />
        <action
            android:id="@+id/go_to_tab_dialog"
            app:destination="@id/tab_dialog" />
        <action
            android:id="@+id/go_to_pre_amp_dialog"
            app:destination="@id/pre_amp_dialog" />
        <action
            android:id="@+id/go_to_music_dirs_dialog"
            app:destination="@id/music_dirs_dialog" />
        <action
            android:id="@+id/go_to_separators_dialog"
            app:destination="@id/separators_dialog" />
    </fragment>
    <dialog
        android:id="@+id/accent_dialog"
        android:name="org.oxycblt.auxio.ui.accent.AccentCustomizeDialog"
        android:label="accent_dialog"
        tools:layout="@layout/dialog_accent" />
    <dialog
        android:id="@+id/tab_dialog"
        android:name="org.oxycblt.auxio.home.tabs.TabCustomizeDialog"
        android:label="tab_dialog"
        tools:layout="@layout/dialog_tabs" />
    <dialog
        android:id="@+id/pre_amp_dialog"
        android:name="org.oxycblt.auxio.playback.replaygain.PreAmpCustomizeDialog"
        android:label="pre_amp_dialog"
        tools:layout="@layout/dialog_pre_amp" />
    <dialog
        android:id="@+id/music_dirs_dialog"
        android:name="org.oxycblt.auxio.music.storage.MusicDirsDialog"
        android:label="music_dirs_dialog"
        tools:layout="@layout/dialog_music_dirs" />
    <dialog
        android:id="@+id/separators_dialog"
        android:name="org.oxycblt.auxio.music.extractor.SeparatorsDialog"
        android:label="music_dirs_dialog"
        tools:layout="@layout/dialog_separators" />

    <fragment
        android:id="@+id/about_fragment"
        android:name="org.oxycblt.auxio.settings.AboutFragment"
        android:label="dialog_about"
        tools:layout="@layout/fragment_about" />
</navigation>