Skip to content

Commit

Permalink
Avoid useless error log
Browse files Browse the repository at this point in the history
  • Loading branch information
RZR-UA committed Jan 15, 2025
1 parent c56c4a1 commit 9d10303
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OsmAnd/src/net/osmand/plus/track/cards/DescriptionCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ public void updateContent() {
String imageUrl = getMetadataImageLink(gpxFile.getMetadata());
String descriptionHtml = gpxFile.getMetadata().getDescription();

AppCompatImageView imageView = view.findViewById(R.id.main_image);
PicassoUtils.setupImageViewByUrl(app, imageView, imageUrl, true);
if (PicassoUtils.isImageUrl(imageUrl)) {
AppCompatImageView imageView = view.findViewById(R.id.main_image);
PicassoUtils.setupImageViewByUrl(app, imageView, imageUrl, true);
}

if (Algorithms.isBlank(descriptionHtml)) {
showAddBtn();
Expand Down

0 comments on commit 9d10303

Please sign in to comment.