Updated on 2026-08-14

This commit is contained in:
Tangem 2019-01-27 15:01:07 +03:00
parent 1d03efbef0
commit d588893224
5 changed files with 88 additions and 9 deletions

View file

@ -37,7 +37,7 @@ object UtilHelper {
return bmp
}
fun isOnline(context: Activity): Boolean {
fun isOnline(context: Context): Boolean {
return try {
val cm = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
val netInfo: NetworkInfo?