Loading project.propertiesdeleted 100644 → 0 +0 −3 Original line number Diff line number Diff line android.library=true src/main/java/at/bitfire/cert4android/CustomCertService.kt +2 −6 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ class CustomCertService: Service() { // bound service val binder = object: ICustomCertService.Stub() { private val binder = object: ICustomCertService.Stub() { override fun checkTrusted(raw: ByteArray, interactive: Boolean, foreground: Boolean, callback: IOnCertificateDecision) { val cert: X509Certificate? = try { Loading Loading @@ -246,11 +246,7 @@ class CustomCertService: Service() { override fun abortCheck(callback: IOnCertificateDecision) { for ((cert, list) in pendingDecisions) { val it = list.listIterator() while (it.hasNext()) if (it.next() == callback) it.remove() list.removeAll { it == callback } if (list.isEmpty()) pendingDecisions -= cert } Loading Loading
project.propertiesdeleted 100644 → 0 +0 −3 Original line number Diff line number Diff line android.library=true
src/main/java/at/bitfire/cert4android/CustomCertService.kt +2 −6 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ class CustomCertService: Service() { // bound service val binder = object: ICustomCertService.Stub() { private val binder = object: ICustomCertService.Stub() { override fun checkTrusted(raw: ByteArray, interactive: Boolean, foreground: Boolean, callback: IOnCertificateDecision) { val cert: X509Certificate? = try { Loading Loading @@ -246,11 +246,7 @@ class CustomCertService: Service() { override fun abortCheck(callback: IOnCertificateDecision) { for ((cert, list) in pendingDecisions) { val it = list.listIterator() while (it.hasNext()) if (it.next() == callback) it.remove() list.removeAll { it == callback } if (list.isEmpty()) pendingDecisions -= cert } Loading