Skip to content

Commit

Permalink
always call the callback after the listener is set
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Mar 25, 2024
1 parent eb27b1c commit e724e9c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ internal interface NetworkObserver: Closeable {
}

internal val NoOpNetworkObserver = object : NetworkObserver {
override fun setListener(listener: NetworkObserver.Listener) {}
override fun setListener(listener: NetworkObserver.Listener) {
listener.networkChanged(true)
}

override fun close() {}
}

0 comments on commit e724e9c

Please sign in to comment.