show explanation for expire messages

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-08-24 11:45:58 +02:00
parent 4bdb78372e
commit e43fe4774e
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
3 changed files with 13 additions and 0 deletions

View file

@ -705,6 +705,7 @@ class ConversationInfoController(args: Bundle) :
databaseStorageModule?.setMessageExpiration(conversation!!.messageExpiration)
binding.conversationInfoExpireMessages.setStorageModule(databaseStorageModule)
binding.conversationInfoExpireMessages.visibility = View.VISIBLE
binding.conversationInfoExpireMessagesExplanation.visibility = View.VISIBLE
} else {
binding.categoryConversationSettings.visibility = View.GONE
}

View file

@ -192,6 +192,17 @@
apc:mp_title="@string/nc_expire_messages">
</com.yarolegovich.mp.MaterialChoicePreference>
<TextView
android:id="@+id/conversation_info_expire_messages_explanation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_marginStart="@dimen/standard_margin"
android:layout_marginEnd="@dimen/standard_margin"
android:textColor="@color/disabled_text"
android:text="@string/nc_expire_messages_explanation">
</TextView>
</com.yarolegovich.mp.MaterialPreferenceCategory>
<com.yarolegovich.mp.MaterialPreferenceCategory

View file

@ -576,6 +576,7 @@
<string name="nc_expire_message_one_day">1 day</string>
<string name="nc_expire_message_eight_hours">8 hours</string>
<string name="nc_expire_message_one_hour">1 hour</string>
<string name="nc_expire_messages_explanation">Expire chat messages after a certain time. Files shared into the chat will only be unshared from the conversation but are not deleted for the owner.</string>
</resources>