Skip to content

Commit

Permalink
1.add SuppressLint permission annotation to getNetworkTypes method
Browse files Browse the repository at this point in the history
  • Loading branch information
yang.bai committed Feb 4, 2024
1 parent 4d09f69 commit 35e69a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cn.tongdun.mobrisk.core.tools

import android.annotation.SuppressLint
import android.content.Context
import android.net.ConnectivityManager

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

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

val list = ArrayList<Int>()
Expand Down

0 comments on commit 35e69a9

Please sign in to comment.