Skip to content

Commit 4a0d39d

Browse files
NearbyParentFragmentPresenter.kt: set Sitelinks for Nearby Places to Sitelinks from local data (#6562)
Before this change, when information about a Place was retrieved from the local Place repository, the Sitelink object was not set into the new Place object. This would cause the Sitelink icons to be missing from the user interface for some Places. This change now sets the Sitelinks object to the locally retrieved Place's Sitelinks. These sitelinks now appear in the user interface if they are stored locally. Co-authored-by: Nicolas Raoul <[email protected]>
1 parent 1c8d1f8 commit 4a0d39d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyParentFragmentPresenter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ class NearbyParentFragmentPresenter
352352
exists = repoPlace.exists ?: true
353353
longDescription = repoPlace.longDescription ?: ""
354354
language = repoPlace.language
355+
siteLinks = repoPlace.siteLinks
355356
}
356357
} else {
357358
indicesToUpdate.add(i)

0 commit comments

Comments
 (0)