Resolve issue with incoming video call state.

This commit is contained in:
Alex Hart
2023-06-22 14:52:10 -03:00
parent 88f50da4fb
commit 1bdc77affe
2 changed files with 3 additions and 2 deletions

View File

@@ -171,7 +171,9 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
processIntent(getIntent());
if (ANSWER_ACTION.equals(getIntent().getAction())) {
if (ANSWER_VIDEO_ACTION.equals(getIntent().getAction())) {
enableVideoIfAvailable = true;
} else if (ANSWER_ACTION.equals(getIntent().getAction()) || getIntent().getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false)) {
enableVideoIfAvailable = false;
} else {
enableVideoIfAvailable = getIntent().getBooleanExtra(EXTRA_ENABLE_VIDEO_IF_AVAILABLE, false);