Let PausingDispatcher handle cancellation

This commit is contained in:
Mygod
2020-05-24 04:45:50 +08:00
parent faf0b2c179
commit 1197400ad0

View File

@@ -184,7 +184,6 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
val config = withContext(Dispatchers.Default) {
P2pSupplicantConfiguration(group, binder?.thisDevice?.deviceAddress)
}
if (parent.isDetached) return null // if we took too long
holder.config = config
return newWifiApConfiguration(group.networkName, config.psk).apply {
allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK) // is not actually used