mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
done
This commit is contained in:
parent
6f1314355e
commit
3faac2ddbb
1 changed files with 3 additions and 1 deletions
|
|
@ -2352,7 +2352,9 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(),
|
||||||
|
|
||||||
selectedPlace?.pic?.substringAfterLast("/")?.takeIf { it.isNotEmpty() }?.let { imageName ->
|
selectedPlace?.pic?.substringAfterLast("/")?.takeIf { it.isNotEmpty() }?.let { imageName ->
|
||||||
Glide.with(binding!!.bottomSheetDetails.icon.context)
|
Glide.with(binding!!.bottomSheetDetails.icon.context)
|
||||||
.load("https://commons.wikimedia.org/wiki/Special:Redirect/file/$imageName?width=30")
|
.clear(binding!!.bottomSheetDetails.icon)
|
||||||
|
Glide.with(binding!!.bottomSheetDetails.icon.context)
|
||||||
|
.load("https://commons.wikimedia.org/wiki/Special:Redirect/file/$imageName?width=25")
|
||||||
.placeholder(fr.free.nrw.commons.R.drawable.ic_refresh_24dp_nearby)
|
.placeholder(fr.free.nrw.commons.R.drawable.ic_refresh_24dp_nearby)
|
||||||
.error(selectedPlace!!.label.icon)
|
.error(selectedPlace!!.label.icon)
|
||||||
.into(binding!!.bottomSheetDetails.icon)
|
.into(binding!!.bottomSheetDetails.icon)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue