Allow ringing while early media
This commit is contained in:
parent
3d0f37d69d
commit
fcdc542315
2 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
||||||
<bool name="show_full_remote_address_on_incoming_call">true</bool>
|
<bool name="show_full_remote_address_on_incoming_call">true</bool>
|
||||||
<bool name="show_only_username_in_history">false</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_transfers">true</bool>
|
||||||
|
|
||||||
<bool name="allow_edit_in_dialer">true</bool>
|
<bool name="allow_edit_in_dialer">true</bool>
|
||||||
|
|
|
@ -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
|
// Brighten screen for at least 10 seconds
|
||||||
WakeLock wl = mPowerManager.newWakeLock(
|
WakeLock wl = mPowerManager.newWakeLock(
|
||||||
PowerManager.ACQUIRE_CAUSES_WAKEUP
|
PowerManager.ACQUIRE_CAUSES_WAKEUP
|
||||||
|
|
Loading…
Reference in a new issue