Allow ringing while early media

This commit is contained in:
Sylvain Berfini 2012-07-05 11:42:23 +02:00
parent 3d0f37d69d
commit fcdc542315
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@
<bool name="show_full_remote_address_on_incoming_call">true</bool>
<bool name="show_only_username_in_history">false</bool>
<bool name="allow_ringing_while_early_media">true</bool>
<bool name="allow_transfers">true</bool>
<bool name="allow_edit_in_dialer">true</bool>

View file

@ -966,7 +966,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
}
}
if (state == IncomingReceived) {
if (state == IncomingReceived || (state == state.CallIncomingEarlyMedia && mR.getBoolean(R.bool.allow_ringing_while_early_media))) {
// Brighten screen for at least 10 seconds
WakeLock wl = mPowerManager.newWakeLock(
PowerManager.ACQUIRE_CAUSES_WAKEUP