mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 21:45:42 +03:00
show explanation for expire messages
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
4bdb78372e
commit
e43fe4774e
3 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue