mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
codefactor cope
This commit is contained in:
parent
32dd1ecaad
commit
a3a3acddd3
1 changed files with 2 additions and 2 deletions
|
@ -494,7 +494,7 @@ object AppUtils {
|
|||
fun Context.isNetworkAvailable(): Boolean {
|
||||
val manager = this.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
|
||||
val activeNetworkInfo = manager.activeNetworkInfo
|
||||
return (activeNetworkInfo != null && activeNetworkInfo.isConnected ) || manager.allNetworkInfo?.any { it.isConnected } ?: false
|
||||
return activeNetworkInfo != null && activeNetworkInfo.isConnected || manager.allNetworkInfo?.any { it.isConnected } ?: false
|
||||
}
|
||||
|
||||
fun splitQuery(url: URL): Map<String, String> {
|
||||
|
@ -821,4 +821,4 @@ object AppUtils {
|
|||
}
|
||||
return currentAudioFocusRequest
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue