Fix speaker state on rotation

This commit is contained in:
Sylvain Berfini 2012-12-11 12:48:59 +01:00
parent aaab2ddc86
commit 3b943018cf

View file

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