mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
Add logging to WebRtcActivity Intent.
This commit is contained in:
@@ -169,6 +169,8 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
|
||||
initializeViewModel(isLandscapeEnabled);
|
||||
initializePictureInPictureParams();
|
||||
|
||||
logIntent(getIntent());
|
||||
|
||||
if (ANSWER_VIDEO_ACTION.equals(getIntent().getAction())) {
|
||||
enableVideoIfAvailable = true;
|
||||
} else if (ANSWER_ACTION.equals(getIntent().getAction()) || getIntent().getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false)) {
|
||||
@@ -227,6 +229,7 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
|
||||
public void onNewIntent(Intent intent) {
|
||||
Log.i(TAG, "onNewIntent(" + intent.getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false) + ")");
|
||||
super.onNewIntent(intent);
|
||||
logIntent(intent);
|
||||
processIntent(intent);
|
||||
}
|
||||
|
||||
@@ -313,6 +316,12 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
|
||||
return isSystemPipEnabledAndAvailable() && isInPictureInPictureMode();
|
||||
}
|
||||
|
||||
private void logIntent(@NonNull Intent intent) {
|
||||
Log.d(TAG, "Intent: Action: " + intent.getAction());
|
||||
Log.d(TAG, "Intent: EXTRA_STARTED_FROM_FULLSCREEN: " + intent.getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false));
|
||||
Log.d(TAG, "Intent: EXTRA_ENABLE_VIDEO_IF_AVAILABLE: " + intent.getBooleanExtra(EXTRA_ENABLE_VIDEO_IF_AVAILABLE, false));
|
||||
}
|
||||
|
||||
private void processIntent(@NonNull Intent intent) {
|
||||
if (ANSWER_ACTION.equals(intent.getAction())) {
|
||||
handleAnswerWithAudio();
|
||||
|
||||
@@ -4,4 +4,6 @@ ext.cdn_ips='new String[]{"108.138.106.119","108.138.106.68","108.138.106.76","1
|
||||
ext.cdn2_ips='new String[]{"104.18.2.43","104.18.3.43"}'
|
||||
ext.kbs_ips='new String[]{"20.85.156.233"}'
|
||||
ext.sfu_ips='new String[]{"34.111.150.130"}'
|
||||
ext.content_proxy_ips='new String[]{"107.178.250.75"}'
|
||||
ext.content_proxy_ips='new String[]{"107.178.250.75"}'
|
||||
ext.cdsi_ips='new String[]{"20.9.14.103"}'
|
||||
ext.svr2_ips='new String[]{"20.119.62.85"}'
|
||||
|
||||
Reference in New Issue
Block a user