mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Added security for BT + fix incoming call when no sdp
This commit is contained in:
parent
a10e8abf23
commit
5be04a5eb0
2 changed files with 2 additions and 5 deletions
|
|
@ -156,11 +156,6 @@ public class IncomingCallActivity extends Activity implements LinphoneOnCallStat
|
|||
|
||||
private void answer() {
|
||||
LinphoneCallParams params = LinphoneManager.getLc().createDefaultCallParameters();
|
||||
if (mCall != null && mCall.getRemoteParams() != null && mCall.getRemoteParams().getVideoEnabled() && LinphonePreferences.instance().shouldAutomaticallyAcceptVideoRequests()) {
|
||||
params.setVideoEnabled(true);
|
||||
} else {
|
||||
params.setVideoEnabled(false);
|
||||
}
|
||||
|
||||
boolean isLowBandwidthConnection = !LinphoneUtils.isHightBandwidthConnection(this);
|
||||
if (isLowBandwidthConnection) {
|
||||
|
|
|
|||
|
|
@ -854,6 +854,8 @@ public class LinphoneManager implements LinphoneCoreListener {
|
|||
else if (state == State.IncomingReceived || (state == State.CallIncomingEarlyMedia && mR.getBoolean(R.bool.allow_ringing_while_early_media))) {
|
||||
// Brighten screen for at least 10 seconds
|
||||
if (mLc.getCallsNb() == 1) {
|
||||
BluetoothManager.getInstance().disableBluetoothSCO(); // Just in case
|
||||
|
||||
ringingCall = call;
|
||||
startRinging();
|
||||
// otherwise there is the beep
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue