Add trim conversations by time option.

This commit is contained in:
Cody Henthorne
2020-09-03 17:52:44 -04:00
parent 6a14dc69c0
commit bcd27355f9
36 changed files with 1183 additions and 233 deletions

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<PreferenceCategory android:title="@string/preferences_storage__storage_usage" />
@@ -9,26 +10,22 @@
<PreferenceCategory
android:key="storage_limits"
android:title="@string/preferences_chats__message_trimming">
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_trim_threads"
android:summary="@string/preferences__automatically_delete_older_messages_once_a_conversation_exceeds_a_specified_length"
android:title="@string/preferences__delete_old_messages" />
<EditTextPreference
android:defaultValue="500"
android:dependency="pref_trim_threads"
android:inputType="number"
android:key="pref_trim_length"
android:title="@string/preferences__conversation_length_limit" />
android:title="@string/preferences_chats__message_history">
<Preference
android:dependency="pref_trim_threads"
android:key="pref_trim_now"
android:summary="@string/preferences__scan_through_all_conversations_and_enforce_conversation_length_limits"
android:title="@string/preferences__trim_all_conversations_now" />
android:key="settings.keep_messages_duration"
android:title="@string/preferences__keep_messages"
tools:summary="@string/preferences_storage__forever" />
<Preference
android:inputType="number"
android:key="pref_trim_length"
android:title="@string/preferences__conversation_length_limit"
tools:summary="None" />
<Preference
android:key="pref_storage_clear_message_history"
android:title="@string/preferences__clear_message_history" />
</PreferenceCategory>