Lilly
05/05/2023, 3:13 PMwhen
expression it is kotlin related 😌
Can someone tell me why lint is warning it would be always true? This warning is new and must have come up after doing some depedency updates/ IDE update.José González D'Amico
05/05/2023, 3:21 PMLilly
05/05/2023, 3:29 PMJosé González D'Amico
05/05/2023, 3:30 PMLilly
05/05/2023, 3:31 PMJosé González D'Amico
05/05/2023, 3:32 PMconnectAsClient
is not being called with the secure
parameter with a true value in all cases?Lilly
05/05/2023, 3:40 PMwhen
it still warns about being always true. Meanwhile, I'm pretty sure this is a bugChrimaeon
05/05/2023, 3:45 PMChrimaeon
05/05/2023, 3:46 PMLilly
05/05/2023, 3:47 PMChrimaeon
05/05/2023, 3:48 PMLilly
05/05/2023, 3:49 PMTuna
05/06/2023, 1:27 AMtry {
val bluetoothSocket = if (secure) {
...
} else {
...
}
socket = bluetoothSocket
bluetoothSocket.connect()
true
} catch (e: IOException) {
false
}