summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSailesh Nepal <sail@google.com>2014-07-18 22:01:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-17 21:09:48 +0000
commit1fa45e8803f29183e9e9246627367e60d081f5d1 (patch)
treef50515a9183feb0c3f475cd31fabeed9915b376c
parent137f67c0d87a8a28be94a07e1c7f05219aacbcb7 (diff)
parent62085c6704849b25beccd81259925f696ef89cd3 (diff)
Merge "Handle Call.onStartActivity in InCallUI" into lmp-dev
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index 1cd9751d7..78c800d31 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/InCallPresenter.java
@@ -16,6 +16,7 @@
package com.android.incallui;
+import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.telecomm.CallCapabilities;
@@ -90,6 +91,16 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
listener.onDetailsChanged(details);
}
}
+
+ @Override
+ public void onStartActivity(android.telecomm.Call call, PendingIntent intent) {
+ Log.i(this, "onStartActivity, intent: " + intent);
+ try {
+ intent.send();
+ } catch (PendingIntent.CanceledException e) {
+ Log.e(this, "onStartActivity, exception", e);
+ }
+ }
};
/**