라이브 후원

- 비밀후원을 체크하면 힌트 메시지에 '비밀' 추가
- 후원메시지 최대 길이 50 -> 200 변경
This commit is contained in:
2024-10-29 00:30:34 +09:00
parent a556378ffe
commit 936074081c
3 changed files with 24 additions and 8 deletions

View File

@@ -46,3 +46,11 @@ fun String.fontSpan(typeface: Typeface?, text: String): SpannableString {
return spannableString
}
fun String.prefix(length: Int): String {
return if (this.length >= length) {
this.substring(0, length)
} else {
this
}
}