Don't hide call controls when interacting with PiP.

This commit is contained in:
Nicholas Tinsley 2024-01-04 15:50:31 -05:00
parent ab4f17d55f
commit d42dfd3edd
2 changed files with 5 additions and 0 deletions

View file

@ -1088,6 +1088,7 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
@Override
public void onLocalPictureInPictureClicked() {
viewModel.onLocalPictureInPictureClicked();
controlsAndInfo.restartHideControlsTimer();
}
@Override

View file

@ -276,6 +276,10 @@ class ControlsAndInfoController(
}
}
fun restartHideControlsTimer() {
hide(delay = HIDE_CONTROL_DELAY)
}
private fun showOrHideControlsOnUpdate(previousState: WebRtcControls) {
if (controlState == WebRtcControls.PIP) {
hide()