Fix system PIP not closing on call end.

This commit is contained in:
Cody Henthorne
2024-12-05 14:57:06 -05:00
committed by Greyson Parrelli
parent 31998f2efb
commit 8996e3b0a7

View File

@@ -265,7 +265,6 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
public void onResume() {
Log.i(TAG, "onResume()");
super.onResume();
EventBus.getDefault().register(this);
initializeScreenshotSecurity();
@@ -311,7 +310,9 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
Log.i(TAG, "onPause");
super.onPause();
EventBus.getDefault().unregister(this);
if (!isInPipMode() || isFinishing()) {
EventBus.getDefault().unregister(this);
}
if (!callPermissionsDialogController.isAskingForPermission() && !viewModel.isCallStarting() && !isChangingConfigurations()) {
CallParticipantsState state = viewModel.getCallParticipantsStateSnapshot();