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
|
@Override
|
||||||
public void onLocalPictureInPictureClicked() {
|
public void onLocalPictureInPictureClicked() {
|
||||||
viewModel.onLocalPictureInPictureClicked();
|
viewModel.onLocalPictureInPictureClicked();
|
||||||
|
controlsAndInfo.restartHideControlsTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -276,6 +276,10 @@ class ControlsAndInfoController(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun restartHideControlsTimer() {
|
||||||
|
hide(delay = HIDE_CONTROL_DELAY)
|
||||||
|
}
|
||||||
|
|
||||||
private fun showOrHideControlsOnUpdate(previousState: WebRtcControls) {
|
private fun showOrHideControlsOnUpdate(previousState: WebRtcControls) {
|
||||||
if (controlState == WebRtcControls.PIP) {
|
if (controlState == WebRtcControls.PIP) {
|
||||||
hide()
|
hide()
|
||||||
|
|
Loading…
Add table
Reference in a new issue