From 6e695f4801859fa3c33da7c9d0d1fc7d444d2d89 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:05:10 +0000 Subject: [PATCH] fix: pass Activity context to CallController for camera orientation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../amethyst/ui/screen/loggedIn/AccountViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt index 1d45da3d1..70818f512 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt @@ -213,7 +213,7 @@ class AccountViewModel( val controller = CallController( - context = context.applicationContext, + context = context, callManager = callManager, scope = viewModelScope, publishWrap = { wrap -> account.publishCallSignaling(wrap) },