Fix disable proximity sensor with video
This commit is contained in:
parent
d7302206dc
commit
90ebbea213
1 changed files with 4 additions and 1 deletions
|
@ -892,6 +892,9 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
|
|||
protected void toggleSpeaker() {
|
||||
isSpeakerEnabled = !isSpeakerEnabled;
|
||||
if (LinphoneManager.getLc().getCurrentCall() != null) {
|
||||
if (isVideoEnabled(LinphoneManager.getLc().getCurrentCall()))
|
||||
LinphoneManager.getInstance().enableProximitySensing(false);
|
||||
else
|
||||
LinphoneManager.getInstance().enableProximitySensing(!isSpeakerEnabled);
|
||||
}
|
||||
if (isSpeakerEnabled) {
|
||||
|
|
Loading…
Reference in a new issue