Commit 0265b6c3 authored by Ricki Hirner's avatar Ricki Hirner 🐑

Update Kotlin version, prefer operators for list modifications

parent d18ab3e8
Pipeline #9113822 passed with stage
in 4 minutes and 23 seconds
buildscript {
ext.kotlin_version = '1.1.2-4'
ext.kotlin_version = '1.1.2-5'
repositories {
jcenter()
......
......@@ -187,7 +187,7 @@ class CustomCertService: Service() {
MSG_CHECK_TRUSTED -> {
service.pendingDecisions[cert]?.let { reply ->
// there's already a pending decision for this certificate, just add this reply messenger
reply.add(replyInfo)
reply += replyInfo
return
}
......@@ -214,7 +214,7 @@ class CustomCertService: Service() {
}
else -> {
val receivers = LinkedList<ReplyInfo>()
receivers.add(replyInfo)
receivers += replyInfo
service.pendingDecisions.put(cert, receivers)
val decisionIntent = Intent(service, TrustCertificateActivity::class.java)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment