mirror of
https://github.com/Corewala/Buran
synced 2025-03-12 07:06:48 +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
|
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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue