Commit d11237e8 authored by Geoffrey Métais's avatar Geoffrey Métais

ViewModels: Fix medialist update

parent c59a7386
......@@ -125,7 +125,8 @@ abstract class BaseModel<T : MediaLibraryItem> : ViewModel(), RefreshModel {
dataset.value = withContext(CommonPool) {
val list = dataset.value
val iterator = list.listIterator()
for (media in iterator) {
while (iterator.hasNext()) {
val media = iterator.next()
for (newItem in mediaList) if (media.equals(newItem)) {
iterator.set(newItem)
break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment