music: complete indexing after post-update steps
Not the most ideal, but results in less state bugs with the current jank "pick folder" visibility in home.
This commit is contained in:
parent
3007ad3ced
commit
20be8c17fe
1 changed files with 2 additions and 2 deletions
|
@ -397,8 +397,6 @@ constructor(
|
||||||
// later.
|
// later.
|
||||||
musicSettings.revision = newRevision
|
musicSettings.revision = newRevision
|
||||||
|
|
||||||
emitIndexingCompletion(null)
|
|
||||||
|
|
||||||
// We want to make sure that all reads and writes are synchronized due to the sheer
|
// We want to make sure that all reads and writes are synchronized due to the sheer
|
||||||
// amount of consumers of MusicRepository.
|
// amount of consumers of MusicRepository.
|
||||||
// TODO: Would Atomics not be a better fit here?
|
// TODO: Would Atomics not be a better fit here?
|
||||||
|
@ -435,6 +433,8 @@ constructor(
|
||||||
// to really lucky cancellations. Clean those up now that it's impossible for
|
// to really lucky cancellations. Clean those up now that it's impossible for
|
||||||
// the rest of the app to be using them.
|
// the rest of the app to be using them.
|
||||||
covers.cleanup(newLibrary.songs.mapNotNull { it.cover })
|
covers.cleanup(newLibrary.songs.mapNotNull { it.cover })
|
||||||
|
|
||||||
|
emitIndexingCompletion(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun emitIndexingProgress(progress: IndexingProgress) {
|
private suspend fun emitIndexingProgress(progress: IndexingProgress) {
|
||||||
|
|
Loading…
Reference in a new issue