diff options
author | Sara Ting <sarating@google.com> | 2012-10-05 16:28:42 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-05 16:28:43 -0700 |
commit | d2cc0774225600e597aa70ca5bd6bb41df818d73 (patch) | |
tree | 218d798e341ac2a841ab369a21c7fe98756ef12c /src | |
parent | c6845b224fc1fd5f4ac96912b2a007e1acc4666c (diff) | |
parent | 35dbc7a1131d7cb22faa0b2b86f5d93bee45ce0b (diff) | |
download | android_packages_apps_Calendar-d2cc0774225600e597aa70ca5bd6bb41df818d73.tar.gz android_packages_apps_Calendar-d2cc0774225600e597aa70ca5bd6bb41df818d73.tar.bz2 android_packages_apps_Calendar-d2cc0774225600e597aa70ca5bd6bb41df818d73.zip |
Merge "Workaround Email bug that does not set email body correctly, when emailing guests." into jb-mr1-dev
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/calendar/Utils.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java index f301324b..3afcfd44 100644 --- a/src/com/android/calendar/Utils.java +++ b/src/com/android/calendar/Utils.java @@ -1405,6 +1405,13 @@ public class Utils { // are multiple email accounts. Intent emailIntent = new Intent(android.content.Intent.ACTION_SENDTO, Uri.parse(uri)); emailIntent.putExtra("fromAccountString", ownerAccount); + + // Workaround a Email bug that overwrites the body with this intent extra. If not + // set, it clears the body. + if (body != null) { + emailIntent.putExtra(Intent.EXTRA_TEXT, body); + } + return Intent.createChooser(emailIntent, resources.getString(R.string.email_picker_label)); } |