mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-02 12:44:05 -04:00
[app] Use RepoManager for enabling/disabling repos
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
e382900f39
commit
b70b3a9a06
@@ -71,6 +71,14 @@ public class RepoManager @JvmOverloads constructor(
|
||||
return repositoriesState.value
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables or disables the repository with the given [repoId].
|
||||
* Data from disabled repositories is ignored in many queries.
|
||||
*/
|
||||
@WorkerThread
|
||||
public fun setRepositoryEnabled(repoId: Long, enabled: Boolean): Unit =
|
||||
repositoryDao.setRepositoryEnabled(repoId, enabled)
|
||||
|
||||
/**
|
||||
* Removes a Repository with the given repoId with all associated data from the database.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user