correct formating

This commit is contained in:
Spitap 2022-03-11 18:42:52 +01:00
parent 11a6a230ae
commit 603f591ab4
No known key found for this signature in database
GPG Key ID: 66DC115FB72EDC69
1 changed files with 4 additions and 3 deletions

View File

@ -353,6 +353,7 @@ class ThreadActivity : SimpleActivity() {
val adjustedPrimaryColor = getAdjustedPrimaryColor()
thread_messages_fastscroller.updateColors(adjustedPrimaryColor)
thread_character_counter.beVisibleIf(config.showCharacterCounter)
thread_character_counter.setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize())
@ -364,11 +365,11 @@ class ThreadActivity : SimpleActivity() {
thread_send_message.isClickable = false
thread_type_message.onTextChangeListener {
@SuppressLint("SetTextI18n")
if(attachmentSelections.isEmpty()) {
if (attachmentSelections.isEmpty()) {
checkSendMessageAvailability()
val messageString = if(config.useSimpleCharacters) it.normalizeString() else it
val messageString = if (config.useSimpleCharacters) it.normalizeString() else it
val messageLength = SmsMessage.calculateLength(messageString, false)
thread_character_counter.text = messageLength[2].toString() + "/" + messageLength[0].toString()
thread_character_counter.text = "${messageLength[2]}/${messageLength[0]}"
} else {
thread_character_counter.text = "mms"
}