Skip to content
Snippets Groups Projects
Commit 382d1f97 authored by Emma Falkiewitz's avatar Emma Falkiewitz Committed by Pierre Nicolas
Browse files

chatView: fix read receipt indicator

GitLab: #1560
Change-Id: Id60b410e0e84f5d7f741ac66d1f9d4339390666b
parent efe32135
No related branches found
No related tags found
No related merge requests found
......@@ -147,18 +147,12 @@ class ConversationViewHolder(v: ViewGroup, val type: MessageType) : RecyclerView
var mAudioMessageLayout: RelativeLayout? = null
val mLayoutStatusIconId: View? = when (type) {
MessageType.OUTGOING_CALL_INFORMATION,
MessageType.INCOMING_CALL_INFORMATION -> v.findViewById(R.id.callLayout)
MessageType.ONGOING_GROUP_CALL -> v.findViewById(R.id.msg_layout)
MessageType.INCOMING_TEXT_MESSAGE,
MessageType.OUTGOING_TEXT_MESSAGE -> v.findViewById(R.id.msg_txt)
MessageType.INCOMING_FILE,
MessageType.OUTGOING_FILE -> v.findViewById(R.id.file_layout)
MessageType.INCOMING_IMAGE,
MessageType.OUTGOING_CALL_INFORMATION-> v.findViewById(R.id.callLayout)
MessageType.OUTGOING_TEXT_MESSAGE
-> v.findViewById(R.id.msg_txt) ?: v.findViewById(R.id.message_bubble)
MessageType.OUTGOING_FILE -> v.findViewById(R.id.fileInfoLayout)
MessageType.OUTGOING_IMAGE -> v.findViewById(R.id.image)
MessageType.INCOMING_AUDIO,
MessageType.OUTGOING_AUDIO -> v.findViewById(R.id.audioInfoLayout)
MessageType.INCOMING_VIDEO,
MessageType.OUTGOING_VIDEO -> v.findViewById(R.id.video_frame)
else -> null
}
......
......@@ -163,8 +163,8 @@
android:id="@+id/status_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="5dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/fileInfoLayout"
app:layout_constraintTop_toBottomOf="@id/fileInfoLayout"
app:tint="@color/grey_500"
tools:background="@color/amber_500"
......
......@@ -146,13 +146,14 @@ along with this program; if not, write to the Free Software
<cx.ring.views.MessageStatusView
android:id="@+id/status_icon"
android:layout_width="@dimen/conversation_status_icon_size"
android:layout_height="@dimen/conversation_status_icon_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="5dp"
app:layout_constraintBottom_toBottomOf="@id/message_bubble"
app:layout_constraintEnd_toEndOf="parent"
tools:background="@color/purple_300"
tools:layout_height="@dimen/conversation_status_icon_size"
tools:layout_width="@dimen/conversation_status_icon_size"
tools:visibility="visible" />
<TextView
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment