diff options
author | Yorke Lee <yorkelee@google.com> | 2013-09-13 15:14:23 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-09-13 15:14:23 -0700 |
commit | e1a53978a9b73bc4336099529ea50c2bc2e80989 (patch) | |
tree | 18370cfc7ab8ff3e7a2ac21d1fc13060d7a213de | |
parent | 7663bf53ad140160693bb4b1907b24615d71678a (diff) |
Don't rely on setChecked to send mute state to telephony
Bug: 10648433
Change-Id: Ife4b92661ab076a99c0f19faff25ec4d6ebe7c8e
-rw-r--r-- | InCallUI/src/com/android/incallui/CallButtonPresenter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java index ec8e84471..7dae73a7a 100644 --- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java +++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java @@ -148,7 +148,6 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto public void muteClicked(boolean checked) { Log.d(this, "turning on mute: " + checked); - CallCommandClient.getInstance().mute(checked); } @@ -172,7 +171,9 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto // Automatically mute the current call mAutomaticallyMuted = true; mPreviousMuteState = AudioModeProvider.getInstance().getMute(); + // Simulate a click on the mute button getUi().setMute(true); + muteClicked(true); CallCommandClient.getInstance().addCall(); } |