Allow explicit Telecom cleanup retry after a rejected timer

This commit is contained in:
evgeny committed 2026-10-29 13:34:25 +01:00
1 parent 6d9530e079
commit 5c33523653
3 files changed
+10 -3

No files matched your search

@@ -189,7 +189,8 @@ object TelecomCallManager {
}
fun removeConnection(callId: Long) {
connections.remove(callId)?.let { retire(callId, it, reasons[it] ?: 0) }
val conn = connections.remove(callId)
if (conn != null) retire(callId, conn, reasons[conn] ?: 0) else cleanupConnections()
LogManager.addLog("DEBUG", TAG, "connection removed id=0x%016x".format(callId))
}
@@ -1,5 +1,11 @@
package android.content
class Context {
open class Context {
companion object { const val TELECOM_SERVICE = "telecom" }
fun <T> getSystemService(type: Class<T>): T = type.cast(android.hardware.camera2.CameraManager.shared)
fun getSystemService(name: String): Any? {
check(!android.telecom.TelecomManager.failLookup) { "Telecom lookup failed" }
return android.telecom.TelecomManager.shared
}
}
data class ComponentName(val context: Context, val target: Class<*>)
@@ -4,7 +4,7 @@ import android.content.Context
import com.utun.chat.data.VideoHostConfig
object ChatApplication { val instance = VideoHostApplication() }
class VideoHostApplication {
class VideoHostApplication : Context() {
val configProvider = VideoHostConfig()
}
object R { object string {