Check service is not null

This commit is contained in:
Mygod
2022-09-24 19:46:52 -04:00
parent e44d0ca295
commit adbc0b981a

View File

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