mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Reactions: fix direction for outgoing bubble
This commit is contained in:
parent
0244fea222
commit
31fa43b5bd
@ -31,6 +31,7 @@ import androidx.core.content.withStyledAttributes
|
||||
import androidx.core.graphics.drawable.DrawableCompat
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.core.view.updateLayoutParams
|
||||
import com.google.android.flexbox.FlexDirection
|
||||
import com.google.android.material.shape.MaterialShapeDrawable
|
||||
import im.vector.app.R
|
||||
import im.vector.app.core.resources.LocaleProvider
|
||||
@ -79,6 +80,7 @@ class MessageBubbleView @JvmOverloads constructor(context: Context, attrs: Attri
|
||||
views.messageThreadSummaryContainer.layoutDirection = layoutDirectionToSet
|
||||
views.bubbleWrapper.layoutDirection = layoutDirectionToSet
|
||||
views.bubbleView.layoutDirection = currentLayoutDirection
|
||||
views.reactionsContainer.flexDirection = if (isIncoming) FlexDirection.ROW else FlexDirection.ROW_REVERSE
|
||||
|
||||
bubbleDrawable = MaterialShapeDrawable()
|
||||
rippleMaskDrawable = MaterialShapeDrawable()
|
||||
|
@ -177,7 +177,7 @@
|
||||
|
||||
<com.google.android.flexbox.FlexboxLayout
|
||||
android:id="@+id/reactionsContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="4dp"
|
||||
app:dividerDrawable="@drawable/reaction_divider"
|
||||
|
Loading…
Reference in New Issue
Block a user