mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
format code
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
1ad186b94b
commit
a133804f65
@ -39,8 +39,12 @@ class ChatUtils {
|
||||
if (type == "file") {
|
||||
resultMessage?.replace("{$key}", individualHashMap["name"].toString())
|
||||
} else {
|
||||
individualHashMap["name"]?.let { resultMessage?.replace("{$key}",
|
||||
individualHashMap["name"]!!) }
|
||||
individualHashMap["name"]?.let {
|
||||
resultMessage?.replace(
|
||||
"{$key}",
|
||||
individualHashMap["name"]!!
|
||||
)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
individualHashMap["name"]?.let { resultMessage?.replace("{$key}", it) }
|
||||
|
@ -152,8 +152,12 @@ class MessageUtils(val context: Context) {
|
||||
val end = start + placeholder.length
|
||||
spannable.replace(start, end, replacementText)
|
||||
spannable.setSpan(
|
||||
ForegroundColorSpan(Color.BLUE), start, start + replacementText!!
|
||||
.length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
|
||||
ForegroundColorSpan(Color.BLUE),
|
||||
start,
|
||||
start + replacementText!!
|
||||
.length,
|
||||
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
|
||||
)
|
||||
|
||||
start = spannable.indexOf(placeholder, start + replacementText.length)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user