mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
fix: pass Activity context (not applicationContext) to CallSession
WebRTC's Camera2Session accesses WindowManager for device orientation. WindowManager is a visual service that requires an Activity context — applicationContext throws IllegalAccessException on Android 12+. https://claude.ai/code/session_019yNnDjGKmJb19gadmojq54
This commit is contained in:
@@ -113,7 +113,7 @@ class CallActivity : AppCompatActivity() {
|
||||
// Create the Activity-owned call session.
|
||||
val callSession =
|
||||
CallSession(
|
||||
context = applicationContext,
|
||||
context = this,
|
||||
callManager = callManager,
|
||||
scope = lifecycleScope,
|
||||
publishWrap = { wrap -> accountViewModel.account.publishCallSignaling(wrap) },
|
||||
|
||||
Reference in New Issue
Block a user