Increase expanded read receipts back to 5
Change-Id: I41833c23f345688bd17b2c70cbc1390d1ec8e95b
This commit is contained in:
parent
2179720ad5
commit
81f0bf2a29
|
@ -28,7 +28,7 @@ import im.vector.app.features.home.AvatarRenderer
|
|||
import im.vector.app.features.home.room.detail.timeline.item.ReadReceiptData
|
||||
import im.vector.app.features.home.room.detail.timeline.item.toMatrixItem
|
||||
|
||||
private const val MAX_RECEIPT_DISPLAYED = 3
|
||||
private const val MAX_RECEIPT_DISPLAYED = 5
|
||||
|
||||
class ReadReceiptsView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
|
@ -44,7 +44,13 @@ class ReadReceiptsView @JvmOverloads constructor(
|
|||
}
|
||||
|
||||
private val receiptAvatars: List<ImageView> by lazy {
|
||||
listOf(views.receiptAvatar1, views.receiptAvatar2, views.receiptAvatar3)
|
||||
listOf(
|
||||
views.receiptAvatar1,
|
||||
views.receiptAvatar2,
|
||||
views.receiptAvatar3,
|
||||
views.receiptAvatar4,
|
||||
views.receiptAvatar5
|
||||
)
|
||||
}
|
||||
|
||||
private fun setupView() {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<!-- Wrong indention for upstream merges -->
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/receiptAvatar3"
|
||||
android:id="@+id/receiptAvatar5"
|
||||
android:layout_width="@dimen/item_event_message_state_size"
|
||||
android:layout_height="@dimen/item_event_message_state_size"
|
||||
android:layout_marginStart="2dp"
|
||||
|
@ -40,6 +40,30 @@
|
|||
tools:ignore="NegativeMargin"
|
||||
tools:src="@sample/user_round_avatars" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/receiptAvatar4"
|
||||
android:layout_width="@dimen/item_event_message_state_size"
|
||||
android:layout_height="@dimen/item_event_message_state_size"
|
||||
android:layout_marginEnd="-6dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:importantForAccessibility="no"
|
||||
android:padding="1dp"
|
||||
android:scaleType="centerCrop"
|
||||
tools:ignore="NegativeMargin"
|
||||
tools:src="@sample/user_round_avatars" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/receiptAvatar3"
|
||||
android:layout_width="@dimen/item_event_message_state_size"
|
||||
android:layout_height="@dimen/item_event_message_state_size"
|
||||
android:layout_marginEnd="-6dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:importantForAccessibility="no"
|
||||
android:padding="1dp"
|
||||
android:scaleType="centerCrop"
|
||||
tools:ignore="NegativeMargin"
|
||||
tools:src="@sample/user_round_avatars" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/receiptAvatar2"
|
||||
android:layout_width="@dimen/item_event_message_state_size"
|
||||
|
|
Loading…
Reference in New Issue