summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-10-25 18:30:36 -0700
committerYorke Lee <yorkelee@google.com>2014-10-25 18:30:36 -0700
commit6c86e632b5c5f65567e45114b6bd1ba48f5863d8 (patch)
treee2e88adfc5d850aa0566f96e4a3e53c55e5ed57a /src
parent152266fb7ae309942e9a67419f104a29f491c0b8 (diff)
Fix some broken Dialer tests
Bug: 17487016 Change-Id: I4c13c3e826a4eb1de84708dfa27ad093b2134087
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/util/DialerUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/util/DialerUtils.java b/src/com/android/dialer/util/DialerUtils.java
index 9cd4d9936..10eadffd5 100644
--- a/src/com/android/dialer/util/DialerUtils.java
+++ b/src/com/android/dialer/util/DialerUtils.java
@@ -71,7 +71,7 @@ public class DialerUtils {
*/
public static void startActivityWithErrorToast(Context context, Intent intent, int msgId) {
try {
- if (Intent.ACTION_CALL.equals(intent.getAction())) {
+ if (Intent.ACTION_CALL.equals(intent.getAction()) && context instanceof Activity) {
// All dialer-initiated calls should pass the touch point to the InCallUI
Point touchPoint = TouchPointManager.getInstance().getPoint();
if (touchPoint.x != 0 || touchPoint.y != 0) {