Skip to content

Commit 35e69a9

Browse files
author
yang.bai
committed
1.add SuppressLint permission annotation to getNetworkTypes method
1 parent 4d09f69 commit 35e69a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

trustdevice/src/main/java/cn/tongdun/mobrisk/core/tools/NetworkUtils.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package cn.tongdun.mobrisk.core.tools
22

3+
import android.annotation.SuppressLint
34
import android.content.Context
45
import android.net.ConnectivityManager
56

@@ -14,6 +15,7 @@ object NetworkUtils {
1415
return getNetworkTypes(context).contains(type)
1516
}
1617

18+
@SuppressLint("MissingPermission")
1719
fun getNetworkTypes(context: Context?): List<Int> {
1820

1921
val list = ArrayList<Int>()

0 commit comments

Comments
 (0)