Fix this overriding again

This commit is contained in:
Mygod
2021-06-01 09:32:14 +08:00
parent a0b52f130f
commit b8df744c89
3 changed files with 6 additions and 6 deletions

View File

@@ -318,8 +318,8 @@ data class SoftApConfigurationCompat(
bssid?.toCompat()?.addr,
passphrase,
isHiddenSsid,
if (BuildCompat.isAtLeastS()) getChannels(this) as SparseIntArray else SparseIntArray(1).apply {
append(getBand(this) as Int, getChannel(this) as Int)
if (BuildCompat.isAtLeastS()) getChannels(this) as SparseIntArray else SparseIntArray(1).also {
it.append(getBand(this) as Int, getChannel(this) as Int)
},
securityType,
getMaxNumberOfClients(this) as Int,