Fix speaker state on rotation
This commit is contained in:
parent
aaab2ddc86
commit
3b943018cf
1 changed files with 3 additions and 8 deletions
|
@ -249,15 +249,10 @@ public class InCallActivity extends FragmentActivity implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isVideoEnabled && !isSpeakerEnabled)
|
if (isSpeakerEnabled) {
|
||||||
{
|
speaker.setBackgroundResource(R.drawable.speaker_on);
|
||||||
toggleSpeaker();
|
|
||||||
} else {
|
} else {
|
||||||
if (isSpeakerEnabled) {
|
speaker.setBackgroundResource(R.drawable.speaker_off);
|
||||||
speaker.setBackgroundResource(R.drawable.speaker_on);
|
|
||||||
} else {
|
|
||||||
speaker.setBackgroundResource(R.drawable.speaker_off);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMicMuted) {
|
if (isMicMuted) {
|
||||||
|
|
Loading…
Reference in a new issue