More tweaking to Rx pipeline

This commit is contained in:
topjohnwu
2019-08-01 23:08:58 -07:00
parent 9784353223
commit cb3f9b9740
2 changed files with 22 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ import com.topjohnwu.magisk.model.entity.module.Repo
@Dao
abstract class RepoDao {
val repoIDSet: Set<String> get() = getRepoID().map { it.id }.toSet()
val repoIDList get() = getRepoID().map { it.id }
val repos: List<Repo> get() = when (Config.repoOrder) {
Config.Value.ORDER_NAME -> getReposNameOrder()
@@ -45,7 +45,7 @@ abstract class RepoDao {
abstract fun removeRepo(id: String)
@Query("DELETE FROM repos WHERE id IN (:idList)")
abstract fun removeRepos(idList: List<String>)
abstract fun removeRepos(idList: Collection<String>)
@Query("SELECT * FROM etag")
protected abstract fun etagRaw(): RepoEtag?