Bubbles: remove emote from bubble (keep right/left alignment)
This commit is contained in:
parent
4de421d663
commit
881b063d45
|
@ -48,7 +48,10 @@ class TimelineMessageLayoutFactory @Inject constructor(private val session: Sess
|
||||||
|
|
||||||
// Use the bubble layout but without borders
|
// Use the bubble layout but without borders
|
||||||
private val MSG_TYPES_WITH_PSEUDO_BUBBLE_LAYOUT = setOf(
|
private val MSG_TYPES_WITH_PSEUDO_BUBBLE_LAYOUT = setOf(
|
||||||
MessageType.MSGTYPE_IMAGE, MessageType.MSGTYPE_VIDEO, MessageType.MSGTYPE_STICKER_LOCAL
|
MessageType.MSGTYPE_IMAGE,
|
||||||
|
MessageType.MSGTYPE_VIDEO,
|
||||||
|
MessageType.MSGTYPE_STICKER_LOCAL,
|
||||||
|
MessageType.MSGTYPE_EMOTE
|
||||||
)
|
)
|
||||||
private val MSG_TYPES_WITH_TIMESTAMP_AS_OVERLAY = setOf(
|
private val MSG_TYPES_WITH_TIMESTAMP_AS_OVERLAY = setOf(
|
||||||
MessageType.MSGTYPE_IMAGE, MessageType.MSGTYPE_VIDEO
|
MessageType.MSGTYPE_IMAGE, MessageType.MSGTYPE_VIDEO
|
||||||
|
|
|
@ -103,7 +103,7 @@ class MessageBubbleView @JvmOverloads constructor(context: Context, attrs: Attri
|
||||||
}
|
}
|
||||||
applyTo(views.bubbleView)
|
applyTo(views.bubbleView)
|
||||||
}
|
}
|
||||||
if (messageLayout.isPseudoBubble) {
|
if (messageLayout.isPseudoBubble && messageLayout.timestampAsOverlay) {
|
||||||
views.viewStubContainer.root.setPadding(0, 0, 0, 0)
|
views.viewStubContainer.root.setPadding(0, 0, 0, 0)
|
||||||
} else {
|
} else {
|
||||||
views.viewStubContainer.root.setPadding(horizontalStubPadding, verticalStubPadding, horizontalStubPadding, verticalStubPadding)
|
views.viewStubContainer.root.setPadding(horizontalStubPadding, verticalStubPadding, horizontalStubPadding, verticalStubPadding)
|
||||||
|
|
Loading…
Reference in New Issue