|
|
@ -47,6 +47,7 @@ class Common { |
|
|
|
val connectivityManager = getApplication<NewsApplication>().getSystemService(.... |
|
|
|
**/ |
|
|
|
//internet check |
|
|
|
@Suppress("Deprecation") |
|
|
|
fun isNetworkAvailable(activity: Activity): Boolean { |
|
|
|
val connectivityManager = activity.getSystemService( |
|
|
|
Context.CONNECTIVITY_SERVICE |
|
|
|