mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-26 15:04:54 +01:00
correct formating
This commit is contained in:
parent
11a6a230ae
commit
603f591ab4
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user