Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a24d07c5 authored by Ricki Hirner's avatar Ricki Hirner
Browse files

Update gradle plugin, avoid ConcurrentModificationException

parent aaeb4de0
Loading
Loading
Loading
Loading

project.properties

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line

android.library=true
+2 −6
Original line number Diff line number Diff line
@@ -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 {
@@ -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
            }