mirror of
https://github.com/Corewala/Buran
synced 2025-03-11 22:53:08 +00:00
Fixed inline images for local links
This commit is contained in:
parent
c535861c1e
commit
fac85fe8a9
1 changed files with 3 additions and 5 deletions
|
@ -196,7 +196,7 @@ class GemtextAdapter(
|
|||
true
|
||||
}
|
||||
|
||||
if(getLink(lines[holder.adapterPosition]).first() == '/'){
|
||||
if("://" !in getLink(lines[holder.adapterPosition])){
|
||||
when {
|
||||
inlineImages.containsKey(position) -> {
|
||||
holder.itemView.rounded_image_frame.visible(true)
|
||||
|
@ -210,10 +210,8 @@ class GemtextAdapter(
|
|||
}
|
||||
}
|
||||
}
|
||||
when {
|
||||
showInlineImages -> holder.itemView.rounded_image_frame.visible(true)
|
||||
else -> holder.itemView.rounded_image_frame.visible(false)
|
||||
}
|
||||
}else{
|
||||
holder.itemView.rounded_image_frame.visible(false)
|
||||
}
|
||||
|
||||
when {
|
||||
|
|
Loading…
Add table
Reference in a new issue