Don't hide call controls when interacting with PiP.
This commit is contained in:
parent
ab4f17d55f
commit
d42dfd3edd
2 changed files with 5 additions and 0 deletions
|
@ -1088,6 +1088,7 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
|
|||
@Override
|
||||
public void onLocalPictureInPictureClicked() {
|
||||
viewModel.onLocalPictureInPictureClicked();
|
||||
controlsAndInfo.restartHideControlsTimer();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -276,6 +276,10 @@ class ControlsAndInfoController(
|
|||
}
|
||||
}
|
||||
|
||||
fun restartHideControlsTimer() {
|
||||
hide(delay = HIDE_CONTROL_DELAY)
|
||||
}
|
||||
|
||||
private fun showOrHideControlsOnUpdate(previousState: WebRtcControls) {
|
||||
if (controlState == WebRtcControls.PIP) {
|
||||
hide()
|
||||
|
|
Loading…
Add table
Reference in a new issue