mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
#3772 fix compilation
This commit is contained in:
parent
350b19e62f
commit
d85d11441d
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import fr.free.nrw.commons.wikidata.WikidataProperties.DEPICTS
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
||||||
import org.wikipedia.wikidata.DataValue.EntityId
|
import org.wikipedia.wikidata.DataValue.EntityId
|
||||||
import org.wikipedia.wikidata.Entities
|
import org.wikipedia.wikidata.Entities
|
||||||
|
import java.util.*
|
||||||
|
|
||||||
@Parcelize
|
@Parcelize
|
||||||
data class Depictions(val depictions: List<IdAndLabel>) : Parcelable {
|
data class Depictions(val depictions: List<IdAndLabel>) : Parcelable {
|
||||||
|
|
@ -24,6 +25,6 @@ data class Depictions(val depictions: List<IdAndLabel>) : Parcelable {
|
||||||
)
|
)
|
||||||
|
|
||||||
private fun fetchLabel(mediaClient: MediaClient, id: String) =
|
private fun fetchLabel(mediaClient: MediaClient, id: String) =
|
||||||
mediaClient.getLabelForDepiction(id).blockingGet()
|
mediaClient.getLabelForDepiction(id, Locale.getDefault().language).blockingGet()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue