mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-07-28 22:59:50 +00:00
Update: Put enabled repositories on top (closes #171)
This commit is contained in:
@ -89,11 +89,12 @@ class PrefsRepositoriesFragment : BaseNavFragment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
reposItemAdapter.set(
|
reposItemAdapter.set(
|
||||||
it.mapNotNull { dbRepo ->
|
it.sortedBy { repo -> -repo.enabled }
|
||||||
dbRepo.trueData?.let { repo ->
|
.mapNotNull { dbRepo ->
|
||||||
RepoItem(repo)
|
dbRepo.trueData?.let { repo ->
|
||||||
|
RepoItem(repo)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user