fix: pass Activity context to CallController for camera orientation

WebRTC's Camera2Session uses WindowManager to get device orientation
for frame rotation. WindowManager requires a visual (Activity)
context — using Application context throws IllegalAccessException.

Changed initCallController to pass the Activity context directly
instead of context.applicationContext.

https://claude.ai/code/session_017hZm7yu7CzmcQgZGSaqSXS
This commit is contained in:
Claude
2026-04-02 14:05:10 +00:00
parent 3fbbfd0224
commit 6e695f4801
@@ -213,7 +213,7 @@ class AccountViewModel(
val controller =
CallController(
context = context.applicationContext,
context = context,
callManager = callManager,
scope = viewModelScope,
publishWrap = { wrap -> account.publishCallSignaling(wrap) },