summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-03-04 08:55:07 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-03-04 08:55:07 -0800
commit7299c5eb8e6752822a2dfd624a15a01d292f9df9 (patch)
treeb4979c2355743cb8dafb9c2e90d9e063e6898872 /src
parenta374186f43b113353a82730614573d5d1c30caee (diff)
parent085e467ee6c192b446ddc54860648cd83fc03a9e (diff)
downloadpackages_apps_InCallUI-7299c5eb8e6752822a2dfd624a15a01d292f9df9.tar.gz
packages_apps_InCallUI-7299c5eb8e6752822a2dfd624a15a01d292f9df9.tar.bz2
packages_apps_InCallUI-7299c5eb8e6752822a2dfd624a15a01d292f9df9.zip
Merge "Add support to Call deflection api"
Diffstat (limited to 'src')
-rw-r--r--src/com/android/incallui/CallCommandClient.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/android/incallui/CallCommandClient.java b/src/com/android/incallui/CallCommandClient.java
index 92cf6d67..da1f22d1 100644
--- a/src/com/android/incallui/CallCommandClient.java
+++ b/src/com/android/incallui/CallCommandClient.java
@@ -281,6 +281,19 @@ public class CallCommandClient {
}
}
+ public void deflectCall(int callId, String number) {
+ if (mCommandService == null) {
+ Log.e(this, "Cannot deflectCall(); CallCommandService == null");
+ return;
+ }
+ try{
+ Log.v(this, "deflectCall() ");
+ mCommandService.deflectCall(callId, number);
+ } catch (RemoteException e) {
+ Log.e(this, "Error on deflectCall().", e);
+ }
+ }
+
public void modifyCallInitiate(int callId, int callType) {
if (mCommandService == null) {
Log.e(this, "Cannot modifyCall(); CallCommandService == null");