<?xml version="1.0" encoding="utf-8"?>
<!--suppress AndroidElementNotAllowed -->
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:key="settings_storage"
    android:title="@string/preference_title_storage">

    <org.mariotaku.twidere.preference.TintedPreferenceCategory
        android:key="category_storage"
        android:title="@string/preference_title_storage">

        <org.mariotaku.twidere.preference.SeekBarDialogPreference
            android:defaultValue="100"
            android:key="database_item_limit"
            android:summary="@string/preference_summary_database_item_limit"
            android:title="@string/preference_title_database_item_limit"
            app:max="500"
            app:min="@integer/min_database_item_limit"
            app:step="10"/>

        <org.mariotaku.twidere.preference.SeekBarDialogPreference
            android:defaultValue="300"
            android:key="cache_size_limit"
            android:title="@string/cache_size_limit"
            app:max="500"
            app:min="100"
            app:progressTextSuffix="MB"
            app:step="50"/>

        <org.mariotaku.twidere.preference.ClearSearchHistoryPreference
            android:key="clear_search_history"
            android:title="@string/clear_search_history"/>

        <org.mariotaku.twidere.preference.ClearCachePreference
            android:key="clear_cache"
            android:summary="@string/clear_cache_summary"
            android:title="@string/clear_cache"/>

        <org.mariotaku.twidere.preference.ClearDatabasesPreference
            android:key="clear_databases"
            android:summary="@string/clear_databases_summary"
            android:title="@string/clear_databases"/>

    </org.mariotaku.twidere.preference.TintedPreferenceCategory>

</PreferenceScreen>