Fixed inline images for local links

This commit is contained in:
Corewala 2022-01-15 09:47:20 -05:00
parent c535861c1e
commit fac85fe8a9
1 changed files with 3 additions and 5 deletions

View File

@ -196,7 +196,7 @@ class GemtextAdapter(
true true
} }
if(getLink(lines[holder.adapterPosition]).first() == '/'){ if("://" !in getLink(lines[holder.adapterPosition])){
when { when {
inlineImages.containsKey(position) -> { inlineImages.containsKey(position) -> {
holder.itemView.rounded_image_frame.visible(true) holder.itemView.rounded_image_frame.visible(true)
@ -210,10 +210,8 @@ class GemtextAdapter(
} }
} }
} }
when { }else{
showInlineImages -> holder.itemView.rounded_image_frame.visible(true) holder.itemView.rounded_image_frame.visible(false)
else -> holder.itemView.rounded_image_frame.visible(false)
}
} }
when { when {