Clean up & add TODOs

This commit is contained in:
machiav3lli
2022-01-28 01:03:20 +01:00
parent ffeb7d5078
commit de8952f3ab
7 changed files with 42 additions and 16 deletions

View File

@ -352,7 +352,11 @@ class SyncService : ConnectionService<SyncService.Binder>() {
val unstable = Preferences[Preferences.Key.UpdateUnstable]
lateinit var disposable: Disposable
disposable = RepositoryUpdater
.update(this@SyncService, repository, unstable) { stage, progress, total ->
.update(
this@SyncService,
repository,
unstable
) { stage, progress, total ->
if (!disposable.isDisposed) {
scope.launch {
mutableStateSubject.emit(