Fix speaker disabled when accepting incoming video call

This commit is contained in:
Sylvain Berfini 2012-10-23 17:12:07 +02:00
parent 14d506e813
commit 8b1eb3ef19

View file

@ -212,11 +212,16 @@ public class InCallActivity extends FragmentActivity implements
}
}
if (isVideoEnabled && !isSpeakerEnabled)
{
toogleSpeaker();
} else {
if (isSpeakerEnabled) {
speaker.setBackgroundResource(R.drawable.speaker_on);
} else {
speaker.setBackgroundResource(R.drawable.speaker_off);
}
}
if (isMicMuted) {
micro.setBackgroundResource(R.drawable.micro_off);