We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d09f69 commit 35e69a9Copy full SHA for 35e69a9
trustdevice/src/main/java/cn/tongdun/mobrisk/core/tools/NetworkUtils.kt
@@ -1,5 +1,6 @@
1
package cn.tongdun.mobrisk.core.tools
2
3
+import android.annotation.SuppressLint
4
import android.content.Context
5
import android.net.ConnectivityManager
6
@@ -14,6 +15,7 @@ object NetworkUtils {
14
15
return getNetworkTypes(context).contains(type)
16
}
17
18
+ @SuppressLint("MissingPermission")
19
fun getNetworkTypes(context: Context?): List<Int> {
20
21
val list = ArrayList<Int>()
0 commit comments