Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 538c32fc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix children concurrentmodification in livedata" into rvc-dev

parents 0bf2d95d c7b6a453
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ abstract class SmartUpdateMediatorLiveData<T> : MediatorLiveData<T>(),
                observer.onChanged(newValue)
            }

            for ((liveData, observer, shouldUpdate) in children) {
            for ((liveData, observer, shouldUpdate) in children.toList()) {
                if (liveData.hasActiveObservers() && shouldUpdate) {
                    observer.onChanged(newValue)
                }