From fa6d1c3cc9cc049a062d9308b4f4042df2ecfbab Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Wed, 7 Aug 2013 21:26:49 -0700 Subject: Show/Hide HOLD depending on phone capabilities. Change-Id: I9fc00175d214668e59058a9b0983019457134b12 --- .../com/android/incallui/CallButtonFragment.java | 5 +++++ .../com/android/incallui/CallButtonPresenter.java | 24 ++++++++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/InCallUI/src/com/android/incallui/CallButtonFragment.java b/InCallUI/src/com/android/incallui/CallButtonFragment.java index 1b9465de7..a5350da08 100644 --- a/InCallUI/src/com/android/incallui/CallButtonFragment.java +++ b/InCallUI/src/com/android/incallui/CallButtonFragment.java @@ -142,6 +142,11 @@ public class CallButtonFragment extends BaseFragment mHoldButton.setChecked(value); } + @Override + public void showHold(boolean show) { + mHoldButton.setVisibility(show ? View.VISIBLE : View.GONE); + } + @Override public void setAudio(int mode) { } diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java index 12f27c81f..bb2484747 100644 --- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java +++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java @@ -23,6 +23,7 @@ import com.android.incallui.InCallPresenter.InCallState; import com.android.incallui.InCallPresenter.InCallStateListener; import com.android.services.telephony.common.AudioMode; import com.android.services.telephony.common.Call; +import com.android.services.telephony.common.Call.Capabilities; /** * Logic for call buttons. @@ -54,10 +55,6 @@ public class CallButtonPresenter extends Presenter