Skip to content

Commit

Permalink
fix localized name adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Oct 29, 2022
1 parent 3dc6687 commit c0ff036
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class LocalizedNameAdapter(
notifyDataSetChanged()
}

private var _names: MutableList<LocalizedName>
private var _names: MutableList<LocalizedName> = mutableListOf()
private val listeners = mutableListOf<(LocalizedName) -> Unit>()

/** list of maps consisting of key = language tag, value = name */
Expand All @@ -58,7 +58,6 @@ class LocalizedNameAdapter(

init {
names = initialNames
_names = initialNames.toMutableList()

this.nameSuggestions = namesSuggestions?.map { localizedNames ->
localizedNames.associate { it.languageTag to it.name }.toMutableMap()
Expand Down

0 comments on commit c0ff036

Please sign in to comment.