mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-11 19:46:16 +00:00
fix: Kotlin fuckup with sdk 35 (#545)
https://youtrack.jetbrains.com/issue/KT-71375/Prevent-Kotlins-removeFirst-and-removeLast-from-causing-crashes-on-Android-14-and-below-after-upgrading-to-Android-API-Level-35
This commit is contained in:
@@ -153,7 +153,7 @@ abstract class Installer(private val service: Service) {
|
|||||||
}
|
}
|
||||||
val nextEntry = queue.first()
|
val nextEntry = queue.first()
|
||||||
if (waitingInstall.compareAndSet(null, nextEntry)) {
|
if (waitingInstall.compareAndSet(null, nextEntry)) {
|
||||||
queue.removeFirst()
|
queue.removeAt(0)
|
||||||
processEntry(nextEntry)
|
processEntry(nextEntry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user