From 49b7eecea9e75ca1493ac57662e161e81397556f Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 28 Jul 2015 17:32:40 -0700 Subject: Use ACTION_SENDTO for send sms intent This ensures the default SMS app is correctly launched. Bug: 22776119 Change-Id: I83610a49d435ba3917225621430b7c8015407f5a --- src/com/android/dialer/util/IntentUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/dialer/util/IntentUtil.java b/src/com/android/dialer/util/IntentUtil.java index 7ed99c9c0..2ce3bd1f8 100644 --- a/src/com/android/dialer/util/IntentUtil.java +++ b/src/com/android/dialer/util/IntentUtil.java @@ -146,7 +146,7 @@ public class IntentUtil { } public static Intent getSendSmsIntent(CharSequence phoneNumber) { - return new Intent(Intent.ACTION_VIEW, Uri.parse(SMS_URI_PREFIX + phoneNumber)); + return new Intent(Intent.ACTION_SENDTO, Uri.parse(SMS_URI_PREFIX + phoneNumber)); } public static Intent getNewContactIntent() { -- cgit v1.2.3