mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Don't hide call controls when interacting with PiP.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user