| Index: webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java
|
| diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java
|
| index 239988a97dfae85c80582c39c3db297876068726..21092227ccabd0a1cc8fdbde87b497b382701636 100644
|
| --- a/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java
|
| +++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java
|
| @@ -132,6 +132,7 @@ public class CallActivity extends Activity
|
| private boolean isError;
|
| private boolean callControlFragmentVisible = true;
|
| private long callStartedTimeMs = 0;
|
| + private boolean micEnabled = true;
|
|
|
| // Controls
|
| private CallFragment callFragment;
|
| @@ -337,6 +338,15 @@ public class CallActivity extends Activity
|
| }
|
| }
|
|
|
| + @Override
|
| + public boolean onToggleMic() {
|
| + if (peerConnectionClient != null) {
|
| + micEnabled = !micEnabled;
|
| + peerConnectionClient.setAudioEnabled(micEnabled);
|
| + }
|
| + return micEnabled;
|
| + }
|
| +
|
| // Helper functions.
|
| private void toggleCallControlFragmentVisibility() {
|
| if (!iceConnected || !callFragment.isAdded()) {
|
|
|