mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
fix drawable for link previews
set drawable of referenceThumbImage to null. this hopefully avoids that wrong images are loaded from recycler view to wrong messages Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
e869108ac7
commit
7f37a0fe63
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class LinkPreview {
|
||||||
binding.referenceName.text = ""
|
binding.referenceName.text = ""
|
||||||
binding.referenceDescription.text = ""
|
binding.referenceDescription.text = ""
|
||||||
binding.referenceLink.text = ""
|
binding.referenceLink.text = ""
|
||||||
binding.referenceThumbImage.controller = null
|
binding.referenceThumbImage.setImageDrawable(null)
|
||||||
|
|
||||||
if (!message.extractedUrlToPreview.isNullOrEmpty()) {
|
if (!message.extractedUrlToPreview.isNullOrEmpty()) {
|
||||||
val credentials: String = ApiUtils.getCredentials(message.activeUser?.username, message.activeUser?.token)
|
val credentials: String = ApiUtils.getCredentials(message.activeUser?.username, message.activeUser?.token)
|
||||||
|
|
Loading…
Reference in a new issue