diff options
author | Santos Cordon <santoscordon@google.com> | 2015-04-12 18:39:02 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2015-04-12 18:39:08 -0700 |
commit | e772ec779eb4c1a43336b621f45987ac6c3ed774 (patch) | |
tree | fd195615923506612db5315519ff6cc29ae727db | |
parent | f171ccead769c1e0e9e03b36a0aeb67d4ed4a2f5 (diff) |
Fix build by added BIDIRECTIONAL suffix
Change-Id: I5d4ee9fa2b1a73a29617dd2c25e8733fb2915154
-rw-r--r-- | InCallUI/src/com/android/incallui/CallButtonPresenter.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java index ac745a473..b50827fea 100644 --- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java +++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java @@ -398,19 +398,19 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto android.telecom.Call.Details.CAPABILITY_SWAP_CONFERENCE)); Log.v(this, "Show add call ", TelecomAdapter.getInstance().canAddCall()); Log.v(this, "Show mute ", call.can(android.telecom.Call.Details.CAPABILITY_MUTE)); - Log.v(this, "Show video call local:", - call.can(android.telecom.Call.Details.CAPABILITY_SUPPORTS_VT_LOCAL) - + " remote: " - + call.can(android.telecom.Call.Details.CAPABILITY_SUPPORTS_VT_REMOTE)); + + boolean canBidiLocal = + call.can(android.telecom.Call.Details.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL); + boolean canBidiRemote = + call.can(android.telecom.Call.Details.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL); + Log.v(this, "Show video call local:" + canBidiLocal + ", remote: " + canBidiRemote); final boolean canAdd = TelecomAdapter.getInstance().canAddCall(); final boolean enableHoldOption = call.can(android.telecom.Call.Details.CAPABILITY_HOLD); final boolean supportHold = call.can(android.telecom.Call.Details.CAPABILITY_SUPPORT_HOLD); final boolean isCallOnHold = call.getState() == Call.State.ONHOLD; - boolean canVideoCall = - call.can(android.telecom.Call.Details.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL) - && call.can(android.telecom.Call.Details.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL); + boolean canVideoCall = canBidiLocal && canBidiRemote; ui.showChangeToVideoButton(canVideoCall); final boolean showMergeOption = call.can( |