Improve sticker visibility
Increase its size and set timestamp inside
This commit is contained in:
parent
8e362f6919
commit
45f44bd1af
|
@ -68,6 +68,7 @@ class TimelineMessageLayoutFactory @Inject constructor(
|
|||
private val MSG_TYPES_WITH_TIMESTAMP_INSIDE_MESSAGE = setOf(
|
||||
MessageType.MSGTYPE_IMAGE,
|
||||
MessageType.MSGTYPE_VIDEO,
|
||||
MessageType.MSGTYPE_STICKER_LOCAL,
|
||||
MessageType.MSGTYPE_BEACON_INFO,
|
||||
MessageType.MSGTYPE_LOCATION,
|
||||
MessageType.MSGTYPE_BEACON_LOCATION_DATA,
|
||||
|
|
|
@ -275,8 +275,7 @@ class ImageContentRenderer @Inject constructor(
|
|||
}
|
||||
Mode.STICKER -> {
|
||||
// limit on width
|
||||
val maxWidthDp = min(dimensionConverter.dpToPx(120), maxImageWidth / 2)
|
||||
finalWidth = min(dimensionConverter.dpToPx(width), maxWidthDp)
|
||||
finalWidth = min(dimensionConverter.dpToPx(width), maxImageWidth * 3 / 4)
|
||||
finalHeight = finalWidth * height / width
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue