Sort spoof locales by name

This commit is contained in:
Rahul Kumar Patel
2021-04-04 03:49:26 +05:30
parent 5fca478111
commit 2dd570dd05

View File

@@ -88,7 +88,9 @@ class LocaleSpoofFragment : BaseFragment() {
private fun updateController(locales: List<Locale>) {
B.recycler.withModels {
setFilterDuplicates(true)
locales.forEach {
locales
.sortedBy { it.displayName }
.forEach {
add(
LocaleViewModel_()
.id(it.language)