dependency update, fixed crash
Signed-off-by: nuclearfog <hatespirit666@gmail.com>
This commit is contained in:
parent
aba8328dc7
commit
d74188dd07
|
@ -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'
|
||||
}
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue