Fix comment

pull/447/head
Don Turner 3 years ago
parent 98ae49f759
commit 9fa3dadcfd

@ -38,10 +38,10 @@ class ConnectivityManagerNetworkMonitor @Inject constructor(
override val isOnline: Flow<Boolean> = callbackFlow { override val isOnline: Flow<Boolean> = callbackFlow {
val connectivityManager = context.getSystemService<ConnectivityManager>() val connectivityManager = context.getSystemService<ConnectivityManager>()
/* /**
The callback's methods are invoked on changes to *any* network, not just the active * The callback's methods are invoked on changes to *any* network, not just the active
network. So to check for network connectivity, one must query the active network of the * network. So to check for network connectivity, one must query the active network of the
ConnectivityManager. * ConnectivityManager.
*/ */
val callback = object : NetworkCallback() { val callback = object : NetworkCallback() {
override fun onAvailable(network: Network) { override fun onAvailable(network: Network) {

Loading…
Cancel
Save