mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 06:28:45 +03:00
Force sender alignment independent of content
Change-Id: I2312659549b334c5c2533e0087906507483c3c23
This commit is contained in:
parent
859cc32d81
commit
5eb78ae95a
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
|
||||
package im.vector.app.features.home.room.detail.timeline.item
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.content.res.ColorStateList
|
||||
import android.content.res.Resources
|
||||
|
@ -412,6 +413,7 @@ abstract class AbsMessageItem<H : AbsMessageItem.Holder> : AbsBaseMessageItem<H>
|
|||
return arrayOf(footerWidth, footerHeight)
|
||||
}
|
||||
|
||||
@SuppressLint("RtlHardcoded")
|
||||
override fun setBubbleLayout(holder: H, bubbleStyle: String, bubbleStyleSetting: String, reverseBubble: Boolean) {
|
||||
super.setBubbleLayout(holder, bubbleStyle, bubbleStyleSetting, reverseBubble)
|
||||
|
||||
|
@ -566,9 +568,11 @@ abstract class AbsMessageItem<H : AbsMessageItem.Holder> : AbsBaseMessageItem<H>
|
|||
if (defaultRtl) {
|
||||
footerLayoutParams.rightMargin = round(footerMarginStartDp * density).toInt()
|
||||
footerLayoutParams.leftMargin = round(footerMarginEndDp * density).toInt()
|
||||
holder.bubbleMemberNameView.gravity = Gravity.RIGHT
|
||||
} else {
|
||||
footerLayoutParams.leftMargin = round(footerMarginStartDp * density).toInt()
|
||||
footerLayoutParams.rightMargin = round(footerMarginEndDp * density).toInt()
|
||||
holder.bubbleMemberNameView.gravity = Gravity.LEFT
|
||||
}
|
||||
}
|
||||
if (bubbleStyle == BubbleThemeUtils.BUBBLE_STYLE_BOTH_HIDDEN) {
|
||||
|
|
Loading…
Reference in a new issue