You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know why, because you lib Utils.class --isOnline --method, val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
val networkInfo = connectivityManager.activeNetworkInfo
return networkInfo != null && networkInfo.isConnected
use context not applicationContext, you can fix it,please.
The text was updated successfully, but these errors were encountered:
I know why, because you lib Utils.class --isOnline --method, val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
val networkInfo = connectivityManager.activeNetworkInfo
return networkInfo != null && networkInfo.isConnected
use context not applicationContext, you can fix it,please.
The text was updated successfully, but these errors were encountered: