Skip to content
Snippets Groups Projects
Commit 461b1052 authored by Emma Falkiewitz's avatar Emma Falkiewitz Committed by Adrien Béraud
Browse files

chatView: fix space between name and audio file

GitLab: #1582
Change-Id: I241d759ca1b3ef2f85890c4b036cfca2fabb0708
parent 70a17c87
No related branches found
No related tags found
No related merge requests found
......@@ -1155,7 +1155,7 @@ class ConversationAdapter(
}
MessageType.TransferType.AUDIO -> {
// Add margin if message need to be separated.
viewHolder.mAudioInfoLayout?.updateLayoutParams<MarginLayoutParams> {
viewHolder.mAudioMessageLayout?.updateLayoutParams<MarginLayoutParams> {
topMargin = if (!isMessageSeparationNeeded) 0 else context.resources
.getDimensionPixelSize(R.dimen.conversation_message_separation)
}
......
......@@ -29,6 +29,7 @@ import android.view.View
import android.widget.FrameLayout
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.RelativeLayout
import androidx.constraintlayout.widget.ConstraintLayout
import cx.ring.R
import cx.ring.views.CustomMessageBubble
......@@ -144,6 +145,7 @@ class ConversationViewHolder(v: ViewGroup, val type: MessageType) : RecyclerView
var mFileTitle: TextView? = null
var mFileDownloadButton: ImageButton? = null
var mAudioInfoLayout: LinearLayout? = null
var mAudioMessageLayout: RelativeLayout? = null
val mLayoutStatusIconId: View? = when (type) {
MessageType.OUTGOING_CALL_INFORMATION,
......@@ -237,6 +239,7 @@ class ConversationViewHolder(v: ViewGroup, val type: MessageType) : RecyclerView
btnRefuse = v.findViewById(R.id.replay)
mMsgTxt = v.findViewById(R.id.msg_txt)
mAudioInfoLayout = v.findViewById(R.id.audioInfoLayout)
mAudioMessageLayout = v.findViewById(R.id.audio_message_layout)
mMsgDetailTxt = v.findViewById(R.id.file_details_txt)
mMsgDetailTxtPerm = v.findViewById(R.id.msg_details_txt_perm)
primaryClickableView = mAudioInfoLayout
......
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