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

@@ -50,8 +50,7 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
var persistentSupported = false
@delegate:TargetApi(29)
private val hasP2pValidateName by lazy {
private val hasP2pValidateName by lazy @TargetApi(29) {
val array = Build.VERSION.SECURITY_PATCH.split('-', limit = 3)
val y = array.getOrNull(0)?.toIntOrNull()
val m = array.getOrNull(1)?.toIntOrNull()