From 62085c6704849b25beccd81259925f696ef89cd3 Mon Sep 17 00:00:00 2001 From: Sailesh Nepal Date: Wed, 16 Jul 2014 17:59:00 -0700 Subject: Handle Call.onStartActivity in InCallUI With this CL, the InCallUI does PendingIntent.send() when Call.onStartActivity is called. The hope is that by having InCalUI do this, we wont have a problem where the InCallUI shows up infront of the dialog created by the ConnectionService. Change-Id: I65119a89c925a93467d1b27304ffec9b088b172f --- InCallUI/src/com/android/incallui/InCallPresenter.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'InCallUI/src/com/android/incallui/InCallPresenter.java') diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java index 5c6283ea4..d47d2c6bb 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; @@ -78,6 +79,16 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener { CallList.getInstance().getCallByTelecommCall(call).getId(), remainingPostDialSequence); } + + @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); + } + } }; /** -- cgit v1.2.3