dependency update, fixed crash

Signed-off-by: nuclearfog <hatespirit666@gmail.com>
This commit is contained in:
nuclearfog 2021-06-07 11:12:25 +02:00
parent aba8328dc7
commit d74188dd07
No known key found for this signature in database
GPG Key ID: AA0271FBE406DB98
2 changed files with 3 additions and 2 deletions

View File

@ -59,6 +59,6 @@ dependencies {
implementation 'com.github.nuclearfog:ZoomView:1.0.2'
implementation 'com.github.nuclearfog:Tagger:2.2'
implementation 'com.github.nuclearfog:LinkAndScrollMovement:1.4'
implementation 'com.github.kyleduo:SwitchButton:098ded81f7'
implementation 'com.github.kyleduo:SwitchButton:2.0.3-SNAPSHOT'
implementation 'com.github.LeonardoCardoso:Android-Link-Preview:master'
}

View File

@ -100,7 +100,8 @@ public class LinkDialog extends Dialog implements LinkPreviewCallback, OnClickLi
if (!sourceContent.getImages().isEmpty()) {
// load first image as preview
String link = sourceContent.getImages().get(0);
Picasso.get().load(link).into(preview);
if (link != null && link.startsWith("https://"))
Picasso.get().load(link).into(preview);
} else {
// no image preview
preview.setVisibility(View.GONE);