Add space between image and text

And remove useless `apply` block
This commit is contained in:
Benoit Marty 2020-12-08 17:42:42 +01:00
parent 8e11ba21ed
commit 42ab7f1b4f
1 changed files with 6 additions and 8 deletions

View File

@ -82,10 +82,9 @@ class EncryptedItemFactory @Inject constructor(private val messageInformationDat
when (cryptoError) { when (cryptoError) {
MXCryptoError.ErrorType.KEYS_WITHHELD -> { MXCryptoError.ErrorType.KEYS_WITHHELD -> {
span { span {
apply { drawableProvider.getDrawable(R.drawable.ic_forbidden, colorFromAttribute)?.let {
drawableProvider.getDrawable(R.drawable.ic_forbidden, colorFromAttribute)?.let { image(it, "baseline")
image(it, "baseline") +" "
}
} }
span(stringProvider.getString(R.string.notice_crypto_unable_to_decrypt_final)) { span(stringProvider.getString(R.string.notice_crypto_unable_to_decrypt_final)) {
textStyle = "italic" textStyle = "italic"
@ -95,10 +94,9 @@ class EncryptedItemFactory @Inject constructor(private val messageInformationDat
} }
else -> { else -> {
span { span {
apply { drawableProvider.getDrawable(R.drawable.ic_clock, colorFromAttribute)?.let {
drawableProvider.getDrawable(R.drawable.ic_clock, colorFromAttribute)?.let { image(it, "baseline")
image(it, "baseline") +" "
}
} }
span(stringProvider.getString(R.string.notice_crypto_unable_to_decrypt_friendly)) { span(stringProvider.getString(R.string.notice_crypto_unable_to_decrypt_friendly)) {
textStyle = "italic" textStyle = "italic"