diff --git a/app/src/main/java/org/linphone/call/CallVideoFragment.java b/app/src/main/java/org/linphone/call/CallVideoFragment.java index 31ff8085f..b9c8e857a 100644 --- a/app/src/main/java/org/linphone/call/CallVideoFragment.java +++ b/app/src/main/java/org/linphone/call/CallVideoFragment.java @@ -215,8 +215,15 @@ public class CallVideoFragment extends Fragment @Override public void onPause() { - if (LinphonePreferences.instance().isOverlayEnabled()) { - LinphoneService.instance().createOverlay(); + Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull(); + if (LinphonePreferences.instance().isOverlayEnabled() + && lc != null + && lc.getCurrentCall() != null) { + Call call = lc.getCurrentCall(); + if (call.getState() == Call.State.StreamsRunning) { + // Prevent overlay creation if video call is paused by remote + LinphoneService.instance().createOverlay(); + } } super.onPause();