We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddf5f22 commit d166b03Copy full SHA for d166b03
V2rayNG/app/src/main/java/com/v2ray/ang/ui/ServerActivity.kt
@@ -356,11 +356,11 @@ class ServerActivity : BaseActivity() {
356
et_sni?.text = Utils.getEditable(config.sni)
357
config.fingerPrint?.let {
358
val utlsIndex = Utils.arrayFind(uTlsItems, it)
359
- sp_stream_fingerprint?.setSelection(utlsIndex)
+ utlsIndex.let { sp_stream_fingerprint?.setSelection(if (it >= 0) it else 0) }
360
}
361
config.alpn?.let {
362
val alpnIndex = Utils.arrayFind(alpns, it)
363
- sp_stream_alpn?.setSelection(alpnIndex)
+ alpnIndex.let { sp_stream_alpn?.setSelection(if (it >= 0) it else 0) }
364
365
if (config.security == TLS) {
366
container_allow_insecure?.visibility = View.VISIBLE
0 commit comments