From c88bdc76bf419808c2e07b69b5b0f2974100ddad Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 27 Feb 2015 18:13:10 -0800 Subject: Fix some Dialer tests Change-Id: I46188070997ebc9b69f7d9b5a8ba9cb3c221b743 --- src/com/android/dialer/util/PrivilegedCallUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/util/PrivilegedCallUtil.java b/src/com/android/dialer/util/PrivilegedCallUtil.java index 88adc725e..367f36566 100644 --- a/src/com/android/dialer/util/PrivilegedCallUtil.java +++ b/src/com/android/dialer/util/PrivilegedCallUtil.java @@ -32,6 +32,8 @@ import com.android.phone.common.PhoneConstants; */ public class PrivilegedCallUtil { + public static final String CALL_ACTION = Intent.ACTION_CALL_PRIVILEGED; + /** * Return an Intent for making a phone call. Scheme (e.g. tel, sip) will be determined * automatically. @@ -129,7 +131,7 @@ public class PrivilegedCallUtil { */ public static Intent getCallIntent( Uri uri, String callOrigin, PhoneAccountHandle accountHandle, int videoState) { - final Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED, uri); + final Intent intent = new Intent(CALL_ACTION, uri); intent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, videoState); if (callOrigin != null) { intent.putExtra(PhoneConstants.EXTRA_CALL_ORIGIN, callOrigin); -- cgit v1.2.3