Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
Signed-off-by: sowjanyakch <[email protected]>
  • Loading branch information
sowjanyakch committed Feb 7, 2025
1 parent e4e1537 commit 86b21b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,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) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 86b21b7

Please sign in to comment.