Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Update to support latest ExtMetadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrant committed Jun 17, 2019
1 parent d7b854a commit db31fcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/wikipedia/gallery/ImageLicense.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public class ImageLicense implements Serializable {
@NonNull @SerializedName("url") private final String licenseUrl;

public ImageLicense(@NonNull ExtMetadata metadata) {
this.license = metadata.license() != null ? metadata.license().value() : "";
this.licenseShortName = metadata.licenseShortName() != null ? metadata.licenseShortName().value() : "";
this.licenseUrl = metadata.licenseUrl() != null ? metadata.licenseUrl().value() : "";
this.license = metadata.license();
this.licenseShortName = metadata.licenseShortName();
this.licenseUrl = metadata.licenseUrl();
}

private ImageLicense(@NonNull String license, @NonNull String licenseShortName, @NonNull String licenseUrl) {
Expand Down

0 comments on commit db31fcb

Please sign in to comment.