Commit 5bd226d3 authored by Sebastian Kaspari's avatar Sebastian Kaspari Committed by Christian Sadilek
Browse files

ObserverRegistry.isObserved(): Consider pending view observers that register observers.

parent 90f17147
......@@ -147,7 +147,9 @@ class ObserverRegistry<T> : Observable<T> {
override fun isObserved(): Boolean {
return observers.isNotEmpty()
// The registry is getting observed if there are registered observer or if there are registered view observers
// that will register an observer as soon as their views are attached.
return observers.isNotEmpty() || viewObservers.isNotEmpty()
Supports Markdown
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