Fix speaker disabled when accepting incoming video call

This commit is contained in:
Sylvain Berfini 2012-10-23 17:12:07 +02:00
parent 6415608e81
commit b75cfc7d9b

View file

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