This commit is contained in:
Mygod
2021-05-27 13:59:17 -04:00
parent 2e5e1c1f6e
commit d2f8de24b4
7 changed files with 21 additions and 34 deletions

View File

@@ -172,9 +172,8 @@ object TetheringManager {
@get:RequiresApi(30)
private val clazz by lazy { Class.forName("android.net.TetheringManager") }
@delegate:TargetApi(30)
@get:RequiresApi(30)
private val instance by lazy {
private val instance by lazy @TargetApi(30) {
@SuppressLint("WrongConstant") // hidden services are not included in constants as of R preview 4
val service = Services.context.getSystemService(TETHERING_SERVICE)
service