<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <item
        android:id="@+id/action_search"
        android:icon="@drawable/ic_search_24dp"
        android:title="@string/search"
        app:actionViewClass="eu.kanade.tachiyomi.ui.base.MiniSearchView"
        app:showAsAction="collapseActionView|ifRoom" />

    <item
        android:id="@+id/action_download"
        android:icon="@drawable/ic_file_download_24dp"
        android:title="@string/download"
        app:showAsAction="ifRoom">
        <menu>
            <item
                android:id="@+id/download_next"
                android:title="@string/unread" />
            <item
                android:id="@+id/download_next_5"
                android:title="@string/unread" />
            <item
                android:id="@+id/download_custom"
                android:title="@string/custom_range" />
            <item
                android:id="@+id/download_unread"
                android:title="@string/all_unread_chapters" />
            <item
                android:id="@+id/download_all"
                android:title="@string/all_chapters" />
        </menu>
    </item>

    <item
        android:id="@+id/action_mark_all_as_read"
        android:icon="@drawable/ic_done_all_24dp"
        android:title="@string/mark_all_as_read"
        app:showAsAction="ifRoom" />

    <item
        android:id="@+id/action_mark_all_as_unread"
        android:title="@string/mark_all_as_unread"
        app:showAsAction="never" />

    <item
        android:id="@+id/action_refresh_tracking"
        android:icon="@drawable/ic_refresh_24dp"
        android:title="@string/refresh_tracking"

        app:showAsAction="never" />
    <item
        android:id="@+id/action_remove_downloads"
        android:title="@string/remove_downloads"
        app:showAsAction="never">
        <menu>
            <item
                android:id="@+id/remove_all"
                android:title="@string/all_chapters" />
            <item
                android:id="@+id/remove_non_bookmarked"
                android:title="@string/all_but_bookmarked_chapters" />
            <item
                android:id="@+id/remove_read"
                android:title="@string/all_read_chapters" />
            <item
                android:id="@+id/remove_custom"
                android:title="@string/custom_range" />
        </menu>
    </item>
    <item
        android:id="@+id/action_edit"
        android:icon="@drawable/ic_edit_24dp"
        android:title="@string/edit"
        app:showAsAction="never" />

    <item
        android:id="@+id/action_migrate"
        android:icon="@drawable/ic_swap_calls_24dp"
        android:title="@string/migrate"
        app:showAsAction="never" />

</menu>
