diff options
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/AnswerPresenter.java | 6 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCommandClient.java | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java index 5663fd94f..123fe9ce9 100644 --- a/InCallUI/src/com/android/incallui/AnswerPresenter.java +++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java @@ -50,16 +50,16 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> public void onAnswer() { Preconditions.checkNotNull(mCall); - Logger.d(this, "onAnswer"); + Logger.d(this, "onAnswer " + mCall.getCallId()); CallCommandClient.getInstance().answerCall(mCall.getCallId()); } public void onDecline() { Preconditions.checkNotNull(mCall); - Logger.d(this, "onDecline"); + Logger.d(this, "onDecline " + mCall.getCallId()); - CallCommandClient.getInstance().disconnectCall(mCall.getCallId()); + CallCommandClient.getInstance().rejectCall(mCall.getCallId()); } public void onText() { diff --git a/InCallUI/src/com/android/incallui/CallCommandClient.java b/InCallUI/src/com/android/incallui/CallCommandClient.java index 94ec3f525..ae3be92ac 100644 --- a/InCallUI/src/com/android/incallui/CallCommandClient.java +++ b/InCallUI/src/com/android/incallui/CallCommandClient.java @@ -56,6 +56,14 @@ public class CallCommandClient { } } + public void rejectCall(int callId) { + try { + mCommandService.rejectCall(callId); + } catch (RemoteException e) { + Logger.e(this, "Error rejecting call.", e); + } + } + public void disconnectCall(int callId) { try { mCommandService.disconnectCall(callId); |