Fix speaker disabled when accepting incoming video call
This commit is contained in:
parent
14d506e813
commit
8b1eb3ef19
1 changed files with 8 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue