Skip to content

Commit

Permalink
🎷🐈
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated authored Feb 3, 2024
1 parent 344bea1 commit a1decb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TextFilePreview : Plugin() {
cardView.removeView(it)
}

if (plainTextExtensions.contains(new URL(entry.attachment.url).getPath().substringAfterLast('.'))) {
if (plainTextExtensions.contains(URL(entry.attachment.url).getPath().substringAfterLast('.'))) {
cardView.getChildAt(0).visibility = View.GONE
cardView.addView(AttachmentPreviewWidget(cardView.context, entry.attachment, settings))
cardView.setOnClickListener(null)
Expand Down

1 comment on commit a1decb5

@WitherredAway
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, it works now (at first glance) 👍

Please sign in to comment.