LibreTube/app/src/main/res/xml/history_settings.xml

81 lines
2.8 KiB
XML
Raw Normal View History

2022-07-16 01:42:51 +05:30
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
2022-07-16 01:42:51 +05:30
<PreferenceCategory app:title="@string/search_history">
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_history_filled"
android:summary="@string/search_history_summary"
app:key="search_history_toggle"
app:title="@string/search_history"/>
2022-07-16 01:42:51 +05:30
2023-04-27 12:46:04 +05:30
<SwitchPreferenceCompat
android:dependency="search_history_toggle"
android:defaultValue="false"
android:icon="@drawable/ic_search"
app:key="unlimited_search_history"
app:title="@string/unlimited_search_history"/>
2023-04-27 12:46:04 +05:30
2022-07-16 01:42:51 +05:30
<Preference
android:icon="@drawable/ic_trash"
2022-07-17 21:48:39 +05:30
app:key="clear_search_history"
app:title="@string/clear_history"/>
2022-07-16 01:42:51 +05:30
</PreferenceCategory>
<PreferenceCategory app:title="@string/watch_history">
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_time_outlined"
android:summary="@string/watch_history_summary"
app:key="watch_history_toggle"
app:title="@string/watch_history"/>
2022-07-16 01:42:51 +05:30
2022-08-09 18:19:34 +05:30
<ListPreference
android:defaultValue="100"
2022-08-09 18:19:34 +05:30
android:entries="@array/historySize"
android:entryValues="@array/historySizeValues"
android:icon="@drawable/ic_list"
app:key="watch_history_size"
android:dependency="watch_history_toggle"
2022-08-09 18:19:34 +05:30
app:title="@string/history_size"
app:useSimpleSummaryProvider="true"/>
2022-08-09 18:19:34 +05:30
2022-07-16 01:42:51 +05:30
<Preference
android:icon="@drawable/ic_trash"
app:key="clear_watch_history"
app:title="@string/clear_history"/>
2022-07-16 01:42:51 +05:30
</PreferenceCategory>
<PreferenceCategory app:title="@string/watch_positions_title">
<ListPreference
android:defaultValue="always"
android:entries="@array/watchPosition"
android:entryValues="@array/watchPositionValues"
2022-07-16 01:42:51 +05:30
android:icon="@drawable/ic_play_filled"
app:key="watch_positions"
2022-07-16 01:42:51 +05:30
app:summary="@string/watch_positions_summary"
app:title="@string/watch_positions"/>
2022-07-16 01:42:51 +05:30
<Preference
android:icon="@drawable/ic_reset"
app:key="clear_watch_positions"
app:title="@string/reset_watch_positions"/>
2022-07-16 01:42:51 +05:30
</PreferenceCategory>
2022-11-19 14:53:09 +05:30
<PreferenceCategory app:title="@string/bookmarks">
2022-11-19 15:28:51 +05:30
<Preference
2022-11-19 14:53:09 +05:30
android:title="@string/clear_bookmarks"
app:icon="@drawable/ic_bookmark"
app:key="clear_bookmarks"/>
2022-11-19 14:53:09 +05:30
</PreferenceCategory>
2022-07-16 01:42:51 +05:30
</PreferenceScreen>