split long line

This commit is contained in:
Benoit Marty 2021-01-11 17:10:08 +01:00
parent b2b1bebc32
commit 26c4c7e467

View File

@ -56,7 +56,11 @@ abstract class MessageImageVideoItem : AbsMessageItem<MessageImageVideoItem.Hold
super.bind(holder)
imageContentRenderer.render(mediaData, mode, holder.imageView)
if (!attributes.informationData.sendState.hasFailed()) {
contentUploadStateTrackerBinder.bind(attributes.informationData.eventId, LocalFilesHelper(holder.view.context).isLocalFile(mediaData.url), holder.progressLayout)
contentUploadStateTrackerBinder.bind(
attributes.informationData.eventId,
LocalFilesHelper(holder.view.context).isLocalFile(mediaData.url),
holder.progressLayout
)
} else {
holder.progressLayout.isVisible = false
}