Fix missing bandOption
This commit is contained in:
@@ -117,9 +117,11 @@ class WifiApDialogFragment : AlertDialogFragment<WifiApDialogFragment.Arg, WifiA
|
|||||||
shutdownTimeoutMillis = dialogView.timeout.text.let { text ->
|
shutdownTimeoutMillis = dialogView.timeout.text.let { text ->
|
||||||
if (text.isNullOrEmpty()) 0 else text.toString().toLong()
|
if (text.isNullOrEmpty()) 0 else text.toString().toLong()
|
||||||
}
|
}
|
||||||
val bandOption = dialogView.band.selectedItem as BandOption
|
if (Build.VERSION.SDK_INT >= 23 || arg.p2pMode) {
|
||||||
band = bandOption.band
|
val bandOption = dialogView.band.selectedItem as BandOption
|
||||||
channel = bandOption.channel
|
band = bandOption.band
|
||||||
|
channel = bandOption.channel
|
||||||
|
}
|
||||||
bssid = if (dialogView.bssid.length() != 0) {
|
bssid = if (dialogView.bssid.length() != 0) {
|
||||||
MacAddressCompat.fromString(dialogView.bssid.text.toString())
|
MacAddressCompat.fromString(dialogView.bssid.text.toString())
|
||||||
} else null
|
} else null
|
||||||
|
|||||||
Reference in New Issue
Block a user