mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fixes 4539 : When Wikidata has no description showing instance_of's label as a description (#4799)
* Showing instance_of's name as a description * Indentation fixed * DepictsClient Test added
This commit is contained in:
parent
c2bc5b4f23
commit
27e3f20ba2
4 changed files with 101 additions and 8 deletions
|
|
@ -78,6 +78,11 @@ public class Entities extends MwResponse implements PostProcessingTypeAdapter.Po
|
|||
@Nullable private String language;
|
||||
@Nullable private String value;
|
||||
|
||||
public Label(@Nullable final String language, @Nullable final String value) {
|
||||
this.language = language;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@NonNull public String language() {
|
||||
return StringUtils.defaultString(language);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue