<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ This file is part of LSPosed.
  ~
  ~ LSPosed is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ LSPosed is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with LSPosed.  If not, see <https://www.gnu.org/licenses/>.
  ~
  ~ Copyright (C) 2020 EdXposed Contributors
  ~ Copyright (C) 2021 LSPosed Contributors
  -->

<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <item
        android:id="@+id/menu_search"
        app:actionViewClass="androidx.appcompat.widget.SearchView"
        app:showAsAction="ifRoom" />

    <item
        android:id="@+id/menu_launch"
        android:title="@string/module_settings"
        android:icon="@drawable/ic_settings"
        app:showAsAction="ifRoom" />

    <item
        android:id="@+id/use_recommended"
        android:title="@string/use_recommended" />

    <item
        android:id="@+id/item_show_games"
        android:checkable="true"
        android:checked="true"
        android:title="@string/menu_show_games" />

    <item
        android:id="@+id/item_show_modules"
        android:checkable="true"
        android:checked="true"
        android:title="@string/menu_show_modules" />

    <item
        android:id="@+id/item_show_system"
        android:checkable="true"
        android:checked="true"
        android:title="@string/menu_show_system_apps" />

    <item
        android:id="@+id/item_list_sort"
        android:title="@string/menu_sort"
        app:showAsAction="never">
        <menu>
            <group android:checkableBehavior="single">
                <item
                    android:id="@+id/item_sort_by_name"
                    android:checked="true"
                    android:title="@string/sort_by_name" />

                <item
                    android:id="@+id/item_sort_by_name_reverse"
                    android:title="@string/sort_by_name_reverse" />

                <item
                    android:id="@+id/item_sort_by_package_name"
                    android:title="@string/sort_by_package_name" />

                <item
                    android:id="@+id/item_sort_by_package_name_reverse"
                    android:title="@string/sort_by_package_name_reverse" />

                <item
                    android:id="@+id/item_sort_by_install_time"
                    android:title="@string/sort_by_install_time" />

                <item
                    android:id="@+id/item_sort_by_install_time_reverse"
                    android:title="@string/sort_by_install_time_reverse" />
                <item
                    android:id="@+id/item_sort_by_update_time"
                    android:title="@string/sort_by_update_time" />

                <item
                    android:id="@+id/item_sort_by_update_time_reverse"
                    android:title="@string/sort_by_update_time_reverse" />
            </group>
        </menu>
    </item>

    <item
        android:title="@string/menu_backup_and_restore"
        app:showAsAction="never">
        <menu>
            <item
                android:id="@+id/backup"
                android:title="@string/menu_backup" />
            <item
                android:id="@+id/restore"
                android:title="@string/menu_restore" />
        </menu>
    </item>
</menu>