fix: inconsistent search history order
This commit is contained in:
parent
95409f7eda
commit
04306a981f
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class SearchHistoryAdapter(private val type: String, private val searchClicked:
|
||||||
PrefManager.getLiveVal(historyType, mutableSetOf<String>()).asLiveStringSet()
|
PrefManager.getLiveVal(historyType, mutableSetOf<String>()).asLiveStringSet()
|
||||||
searchHistoryLiveData?.observeForever {
|
searchHistoryLiveData?.observeForever {
|
||||||
searchHistory = it.toMutableSet()
|
searchHistory = it.toMutableSet()
|
||||||
submitList(searchHistory?.reversed())
|
submitList(searchHistory?.toList())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue