mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-07 06:23:55 +01:00
splitting the CharSequence creation from the conversion to EpoxyCharSequence
This commit is contained in:
parent
7c5e7a902d
commit
bb2e3b1078
@ -61,7 +61,7 @@ class SplashCarouselStateFactory @Inject constructor(
|
||||
private fun Int.colorTerminatingFullStop(@AttrRes color: Int): EpoxyCharSequence {
|
||||
val string = stringProvider.getString(this)
|
||||
val fullStop = "."
|
||||
return (if (string.endsWith(fullStop)) {
|
||||
val charSequence = if (string.endsWith(fullStop)) {
|
||||
span {
|
||||
+string.removeSuffix(fullStop)
|
||||
span(fullStop) {
|
||||
@ -70,6 +70,7 @@ class SplashCarouselStateFactory @Inject constructor(
|
||||
}
|
||||
} else {
|
||||
string
|
||||
}).toEpoxyCharSequence()
|
||||
}
|
||||
return charSequence.toEpoxyCharSequence()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user