fix: inconsistent search history order

This commit is contained in:
rebelonion 2024-02-06 19:07:44 -06:00
parent 95409f7eda
commit 04306a981f

View file

@ -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())
} }
} }