mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-16 23:02:23 -08:00
Fixed inconsistent displaying of repos and improved their sorting
This commit is contained in:
@@ -35,6 +35,9 @@ class ModuleRepository(
|
||||
}.getOrNull()
|
||||
}
|
||||
}
|
||||
//either github apparently returns repos incorrectly or ...
|
||||
//either ways this fixes duplicates
|
||||
.map { it.distinctBy { it.id } }
|
||||
.doOnSuccess { repoDao.insert(it) }
|
||||
|
||||
private fun fetchCachedOrdered() = Single.fromCallable {
|
||||
|
||||
Reference in New Issue
Block a user