Fix typo: toogle->toggle.
This commit is contained in:
parent
a20b80bfc2
commit
d5a160b54b
1 changed files with 5 additions and 5 deletions
|
@ -251,7 +251,7 @@ public class InCallActivity extends FragmentActivity implements
|
||||||
|
|
||||||
if (isVideoEnabled && !isSpeakerEnabled)
|
if (isVideoEnabled && !isSpeakerEnabled)
|
||||||
{
|
{
|
||||||
toogleSpeaker();
|
toggleSpeaker();
|
||||||
} else {
|
} else {
|
||||||
if (isSpeakerEnabled) {
|
if (isSpeakerEnabled) {
|
||||||
speaker.setBackgroundResource(R.drawable.speaker_on);
|
speaker.setBackgroundResource(R.drawable.speaker_on);
|
||||||
|
@ -329,10 +329,10 @@ public class InCallActivity extends FragmentActivity implements
|
||||||
switchVideo(isVideoEnabled);
|
switchVideo(isVideoEnabled);
|
||||||
}
|
}
|
||||||
else if (id == R.id.micro) {
|
else if (id == R.id.micro) {
|
||||||
toogleMicro();
|
toggleMicro();
|
||||||
}
|
}
|
||||||
else if (id == R.id.speaker) {
|
else if (id == R.id.speaker) {
|
||||||
toogleSpeaker();
|
toggleSpeaker();
|
||||||
}
|
}
|
||||||
else if (id == R.id.addCall) {
|
else if (id == R.id.addCall) {
|
||||||
goBackToDialer();
|
goBackToDialer();
|
||||||
|
@ -439,7 +439,7 @@ public class InCallActivity extends FragmentActivity implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void toogleMicro() {
|
private void toggleMicro() {
|
||||||
LinphoneCore lc = LinphoneManager.getLc();
|
LinphoneCore lc = LinphoneManager.getLc();
|
||||||
isMicMuted = !isMicMuted;
|
isMicMuted = !isMicMuted;
|
||||||
lc.muteMic(isMicMuted);
|
lc.muteMic(isMicMuted);
|
||||||
|
@ -450,7 +450,7 @@ public class InCallActivity extends FragmentActivity implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void toogleSpeaker() {
|
private void toggleSpeaker() {
|
||||||
isSpeakerEnabled = !isSpeakerEnabled;
|
isSpeakerEnabled = !isSpeakerEnabled;
|
||||||
if (isSpeakerEnabled) {
|
if (isSpeakerEnabled) {
|
||||||
LinphoneManager.getInstance().routeAudioToSpeaker();
|
LinphoneManager.getInstance().routeAudioToSpeaker();
|
||||||
|
|
Loading…
Reference in a new issue