Updated on 2026-08-14
This commit is contained in:
parent
1d03efbef0
commit
d588893224
5 changed files with 88 additions and 9 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue