diff options
author | Yorke Lee <yorkelee@google.com> | 2015-07-28 17:32:40 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-07-28 18:21:48 -0700 |
commit | 49b7eecea9e75ca1493ac57662e161e81397556f (patch) | |
tree | 5fa3aec822d93ab579fddd68c38ff20f506081a2 | |
parent | ed058349a636243714db0f53d441591cbf00410a (diff) |
Use ACTION_SENDTO for send sms intent
This ensures the default SMS app is correctly launched.
Bug: 22776119
Change-Id: I83610a49d435ba3917225621430b7c8015407f5a
-rw-r--r-- | src/com/android/dialer/util/IntentUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |