diff options
author | Yorke Lee <yorkelee@google.com> | 2014-11-18 20:17:53 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-18 20:17:53 +0000 |
commit | 2b6e304b1ddc749d0ad25e0bc0e61c90d8ee6a9e (patch) | |
tree | 17e720ef062e6010a6d08b74716fc125029f9eda | |
parent | 7b241d26c2a5f2e1be08648e11e6aa8576b50cdf (diff) | |
parent | 8b89e8889c7564850fdb626c31a52f0fd53278d0 (diff) |
am 8b89e888: am 8a1dde27: am db49e195: Merge commit \'59edcfbc\' into manualmerge
* commit '8b89e8889c7564850fdb626c31a52f0fd53278d0':
Switch from CALL -> CALL_PRIVILEGED
-rw-r--r-- | AndroidManifest.xml | 1 | ||||
-rw-r--r-- | src/com/android/dialer/util/DialerUtils.java | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 81ae89a57..861fd1dbc 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -19,6 +19,7 @@ coreApp="true"> <uses-permission android:name="android.permission.CALL_PHONE" /> + <uses-permission android:name="android.permission.CALL_PRIVILEGED" /> <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.WRITE_CONTACTS" /> <uses-permission android:name="android.permission.READ_CALL_LOG" /> diff --git a/src/com/android/dialer/util/DialerUtils.java b/src/com/android/dialer/util/DialerUtils.java index 10eadffd5..153f762e7 100644 --- a/src/com/android/dialer/util/DialerUtils.java +++ b/src/com/android/dialer/util/DialerUtils.java @@ -71,7 +71,9 @@ public class DialerUtils { */ public static void startActivityWithErrorToast(Context context, Intent intent, int msgId) { try { - if (Intent.ACTION_CALL.equals(intent.getAction()) && context instanceof Activity) { + if ((Intent.ACTION_CALL.equals(intent.getAction()) + || Intent.ACTION_CALL_PRIVILEGED.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) { |