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(
|
private val MSG_TYPES_WITH_TIMESTAMP_INSIDE_MESSAGE = setOf(
|
||||||
MessageType.MSGTYPE_IMAGE,
|
MessageType.MSGTYPE_IMAGE,
|
||||||
MessageType.MSGTYPE_VIDEO,
|
MessageType.MSGTYPE_VIDEO,
|
||||||
|
MessageType.MSGTYPE_STICKER_LOCAL,
|
||||||
MessageType.MSGTYPE_BEACON_INFO,
|
MessageType.MSGTYPE_BEACON_INFO,
|
||||||
MessageType.MSGTYPE_LOCATION,
|
MessageType.MSGTYPE_LOCATION,
|
||||||
MessageType.MSGTYPE_BEACON_LOCATION_DATA,
|
MessageType.MSGTYPE_BEACON_LOCATION_DATA,
|
||||||
|
@ -275,8 +275,7 @@ class ImageContentRenderer @Inject constructor(
|
|||||||
}
|
}
|
||||||
Mode.STICKER -> {
|
Mode.STICKER -> {
|
||||||
// limit on width
|
// limit on width
|
||||||
val maxWidthDp = min(dimensionConverter.dpToPx(120), maxImageWidth / 2)
|
finalWidth = min(dimensionConverter.dpToPx(width), maxImageWidth * 3 / 4)
|
||||||
finalWidth = min(dimensionConverter.dpToPx(width), maxWidthDp)
|
|
||||||
finalHeight = finalWidth * height / width
|
finalHeight = finalWidth * height / width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user