Avoid warnings
This commit is contained in:
@ -148,12 +148,12 @@ class AccountActivity : AppCompatActivity() {
|
||||
if (text in videoCodecs)
|
||||
acc.videoCodec.add(text)
|
||||
"media-encoding" -> {
|
||||
val enc = text.toLowerCase(Locale.ROOT)
|
||||
val enc = text.lowercase(Locale.ROOT)
|
||||
if (enc in mediaEncKeys && enc.isNotEmpty())
|
||||
acc.mediaEnc = enc
|
||||
}
|
||||
"media-nat" -> {
|
||||
val nat = text.toLowerCase(Locale.ROOT)
|
||||
val nat = text.lowercase(Locale.ROOT)
|
||||
if (nat in mediaNatKeys && nat.isNotEmpty())
|
||||
acc.mediaNat = nat
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ class CallHistory(val aor: String, val peerUri: String, val direction: String,
|
||||
|
||||
companion object {
|
||||
|
||||
const val CALL_HISTORY_SIZE = 100
|
||||
private const val CALL_HISTORY_SIZE = 100
|
||||
|
||||
fun add(history: CallHistory) {
|
||||
BaresipService.callHistory.add(history)
|
||||
@ -51,7 +51,7 @@ class CallHistory(val aor: String, val peerUri: String, val direction: String,
|
||||
oos.close()
|
||||
fos.close()
|
||||
} catch (e: IOException) {
|
||||
Log.e(TAG, "OutputStream exception: " + e.toString())
|
||||
Log.e(TAG, "OutputStream exception: $e")
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
@ -68,7 +68,7 @@ class CallHistory(val aor: String, val peerUri: String, val direction: String,
|
||||
fis.close()
|
||||
Log.d(TAG, "Restored history of ${BaresipService.callHistory.size} calls")
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "InputStream exception: - " + e.toString())
|
||||
Log.e(TAG, "InputStream exception: - $e")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package com.tutpro.baresip
|
||||
|
||||
class CallRow(val aor: String, val peerUri: String, private val direction: Int, val time: String,
|
||||
private val index: Int) {
|
||||
class CallRow(val aor: String, val peerUri: String, direction: Int, val time: String,
|
||||
index: Int) {
|
||||
|
||||
val directions = ArrayList<Int>()
|
||||
val indexes = ArrayList<Int>()
|
||||
|
||||
Reference in New Issue
Block a user