Remove unused field

This commit is contained in:
Mygod
2018-12-27 12:59:55 +08:00
parent bc0d6de3f9
commit 0ef55133bb
2 changed files with 1 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
holder.config = config
WifiP2pDialogFragment().apply {
arguments = bundleOf(Pair(WifiP2pDialogFragment.KEY_CONFIGURATION, WifiConfiguration().apply {
SSID = config.ssid
SSID = group.networkName
preSharedKey = config.psk
}))
setTargetFragment(parent, TetheringFragment.REPEATER_EDIT_CONFIGURATION)

View File

@@ -84,7 +84,6 @@ class P2pSupplicantConfiguration(private val group: WifiP2pGroup, ownerAddress:
}
}
}
val ssid = group.networkName
val psk = group.passphrase ?: content.second.psk!!
fun update(ssid: String, psk: String) {