add an option for showing character counter at sending messages

This commit is contained in:
tibbi 2020-11-04 12:36:02 +01:00
parent 87e1be8e1b
commit 82f78f002e
6 changed files with 65 additions and 5 deletions

View file

@ -263,6 +263,7 @@ class ThreadActivity : SimpleActivity() {
thread_send_message.applyColorFilter(textColor)
confirm_manage_contacts.applyColorFilter(textColor)
thread_add_attachment.applyColorFilter(textColor)
thread_character_counter.beVisibleIf(config.showCharacterCounter)
thread_send_message.setOnClickListener {
sendMessage()
@ -271,6 +272,7 @@ class ThreadActivity : SimpleActivity() {
thread_send_message.isClickable = false
thread_type_message.onTextChangeListener {
checkSendMessageAvailability()
thread_character_counter.text = it.length.toString()
}
confirm_manage_contacts.setOnClickListener {