Add space between image and text
And remove useless `apply` block
This commit is contained in:
parent
8e11ba21ed
commit
42ab7f1b4f
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue