reduce the alpha of the Send Message button, if unavailable

This commit is contained in:
tibbi 2020-04-05 12:17:37 +02:00
parent 1c1ccb7a4b
commit 2c1482ebdd
2 changed files with 2 additions and 1 deletions

View file

@ -76,6 +76,7 @@ class ThreadActivity : SimpleActivity() {
thread_send_message.isClickable = false
thread_type_message.onTextChangeListener {
thread_send_message.isClickable = it.isNotEmpty()
thread_send_message.alpha = if (it.isEmpty()) 0.4f else 0.9f
}
}