P2p channel is always set by app

This commit is contained in:
Mygod
2022-02-21 21:16:50 -05:00
parent dbfc2c1f82
commit da59296548

View File

@@ -231,7 +231,7 @@ class WifiApDialogFragment : AlertDialogFragment<WifiApDialogFragment.Arg, WifiA
val selection = currentChannels.indexOfFirst { it.band == band && it.channel == channel } val selection = currentChannels.indexOfFirst { it.band == band && it.channel == channel }
return if (selection == -1) { return if (selection == -1) {
val msg = "Unable to locate $band, $channel, ${arg.p2pMode && !RepeaterService.safeMode}" val msg = "Unable to locate $band, $channel, ${arg.p2pMode && !RepeaterService.safeMode}"
if (pasted) Timber.w(msg) else Timber.w(Exception(msg)) if (pasted || arg.p2pMode) Timber.w(msg) else Timber.w(Exception(msg))
0 0
} else selection } else selection
} }