fixing some spacing

This commit is contained in:
tibbi 2022-11-10 16:45:18 +01:00
parent b393cc3402
commit bc8bd5dc5f
1 changed files with 2 additions and 1 deletions

View File

@ -462,7 +462,7 @@ class ThreadActivity : SimpleActivity() {
val messageLength = SmsMessage.calculateLength(messageString, false)
thread_character_counter.text = "${messageLength[2]}/${messageLength[0]}"
}
if (config.sendOnEnter) {
thread_type_message.inputType = EditorInfo.TYPE_TEXT_FLAG_CAP_SENTENCES
thread_type_message.imeOptions = EditorInfo.IME_ACTION_SEND
@ -474,6 +474,7 @@ class ThreadActivity : SimpleActivity() {
}
false
}
thread_type_message.setOnKeyListener { _, keyCode, event ->
if (keyCode == KeyEvent.KEYCODE_ENTER && event.action == KeyEvent.ACTION_UP) {
sendMessage()