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

Commit da8cbfea authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

fix results of internetConnection

parent 90d3bd3d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ class MainActivityViewModel @Inject constructor(

            override fun onAvailable(network: Network) {
                super.onAvailable(network)
                callbackFlowScope.sendInternetStatus(connectivityManager)
                callbackFlowScope.trySend(true)
            }

            override fun onCapabilitiesChanged(
@@ -260,7 +260,7 @@ class MainActivityViewModel @Inject constructor(

            override fun onLost(network: Network) {
                super.onLost(network)
                callbackFlowScope.sendInternetStatus(connectivityManager)
                callbackFlowScope.trySend(false)
            }
        }
    }