use of android.app.PictureInPictureParams in project Signal-Android by signalapp.
the class WebRtcCallActivity method enterPipModeIfPossible.
private boolean enterPipModeIfPossible() {
if (viewModel.canEnterPipMode() && isSystemPipEnabledAndAvailable()) {
PictureInPictureParams params = new PictureInPictureParams.Builder().setAspectRatio(new Rational(9, 16)).build();
enterPictureInPictureMode(params);
CallParticipantsListDialog.dismiss(getSupportFragmentManager());
return true;
}
return false;
}
use of android.app.PictureInPictureParams in project Camera-Roll-Android-App by kollerlukas.
the class VideoPlayerActivity method onPause.
@Override
protected void onPause() {
super.onPause();
if (player.getPlayWhenReady() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
PictureInPictureParams params = new PictureInPictureParams.Builder().build();
enterPictureInPictureMode(params);
}
}
use of android.app.PictureInPictureParams in project Signal-Android by WhisperSystems.
the class WebRtcCallActivity method enterPipModeIfPossible.
private boolean enterPipModeIfPossible() {
if (viewModel.canEnterPipMode() && isSystemPipEnabledAndAvailable()) {
PictureInPictureParams params = new PictureInPictureParams.Builder().setAspectRatio(new Rational(9, 16)).build();
enterPictureInPictureMode(params);
CallParticipantsListDialog.dismiss(getSupportFragmentManager());
return true;
}
return false;
}
Aggregations