mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Use CommonStrings
This commit is contained in:
committed by
Benoit Marty
parent
5cfb2080bd
commit
52b7fc4196
+2
-2
@@ -22,7 +22,7 @@ import io.element.android.features.messages.impl.timeline.model.TimelineItem
|
|||||||
import io.element.android.features.messages.impl.timeline.model.event.TimelineItemTextBasedContent
|
import io.element.android.features.messages.impl.timeline.model.event.TimelineItemTextBasedContent
|
||||||
import io.element.android.libraries.core.bool.orFalse
|
import io.element.android.libraries.core.bool.orFalse
|
||||||
import io.element.android.libraries.matrix.api.timeline.item.event.EventSendState
|
import io.element.android.libraries.matrix.api.timeline.item.event.EventSendState
|
||||||
import io.element.android.libraries.ui.strings.R
|
import io.element.android.libraries.ui.strings.CommonStrings
|
||||||
|
|
||||||
// Allow to not overlap the timestamp with the text, in the message bubble.
|
// Allow to not overlap the timestamp with the text, in the message bubble.
|
||||||
// Compute the size of the worst case.
|
// Compute the size of the worst case.
|
||||||
@@ -42,7 +42,7 @@ fun TimelineItem.Event.toExtraPadding(): ExtraPadding {
|
|||||||
|
|
||||||
var strLen = 2
|
var strLen = 2
|
||||||
if (isMessageEdited) {
|
if (isMessageEdited) {
|
||||||
strLen += stringResource(id = R.string.common_edited_suffix).length + 2
|
strLen += stringResource(id = CommonStrings.common_edited_suffix).length + 2
|
||||||
}
|
}
|
||||||
strLen += formattedTime.length
|
strLen += formattedTime.length
|
||||||
if (hasMessageSendingFailed) {
|
if (hasMessageSendingFailed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user