Skip to content

Commit

Permalink
Fix Android SDK 35 problem
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaslogen committed Nov 5, 2024
1 parent dda821f commit 03799fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public class ScopedViewModelContainer : ViewModel(), LifecycleEventObserver {
// Cancel all coroutines, Closeables and ViewModels hosted in this object
val objectsToClear: MutableList<Any> = scopedObjectsContainer.values.toMutableList()
while (objectsToClear.isNotEmpty()) {
val lastObject = objectsToClear.removeLast()
val lastObject = objectsToClear.removeAt(objectsToClear.lastIndex)
clearLastDisposedObject(lastObject, objectsToClear)
}
scopedObjectKeys.clear() // Clear all keys
Expand Down

0 comments on commit 03799fa

Please sign in to comment.