mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-05 03:37:54 +01:00
correct formating
This commit is contained in:
parent
11a6a230ae
commit
603f591ab4
@ -353,6 +353,7 @@ class ThreadActivity : SimpleActivity() {
|
|||||||
|
|
||||||
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
||||||
thread_messages_fastscroller.updateColors(adjustedPrimaryColor)
|
thread_messages_fastscroller.updateColors(adjustedPrimaryColor)
|
||||||
|
|
||||||
thread_character_counter.beVisibleIf(config.showCharacterCounter)
|
thread_character_counter.beVisibleIf(config.showCharacterCounter)
|
||||||
thread_character_counter.setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize())
|
thread_character_counter.setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize())
|
||||||
|
|
||||||
@ -364,11 +365,11 @@ class ThreadActivity : SimpleActivity() {
|
|||||||
thread_send_message.isClickable = false
|
thread_send_message.isClickable = false
|
||||||
thread_type_message.onTextChangeListener {
|
thread_type_message.onTextChangeListener {
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
if(attachmentSelections.isEmpty()) {
|
if (attachmentSelections.isEmpty()) {
|
||||||
checkSendMessageAvailability()
|
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)
|
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 {
|
} else {
|
||||||
thread_character_counter.text = "mms"
|
thread_character_counter.text = "mms"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user