summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/Utils.java
diff options
context:
space:
mode:
authorSara Ting <sarating@google.com>2012-10-05 13:24:42 -0700
committerSara Ting <sarating@google.com>2012-10-05 13:24:42 -0700
commite6baa6a8ca06655e5d31edbca010795e439666fd (patch)
treef793b1707bdb2bf0162c780be8083f05ea1b1373 /src/com/android/calendar/Utils.java
parent21049d25dcf8f055dc046a889b0a514833ad599a (diff)
downloadandroid_packages_apps_Calendar-e6baa6a8ca06655e5d31edbca010795e439666fd.tar.gz
android_packages_apps_Calendar-e6baa6a8ca06655e5d31edbca010795e439666fd.tar.bz2
android_packages_apps_Calendar-e6baa6a8ca06655e5d31edbca010795e439666fd.zip
Workaround Email bug that does not set email body correctly, when emailing guests.
Bug:7289773 Change-Id: I11a455a42c1d0d592f10cc6f6ad370eb86e610e2
Diffstat (limited to 'src/com/android/calendar/Utils.java')
-rw-r--r--src/com/android/calendar/Utils.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java
index 42a2891c..1d9f5492 100644
--- a/src/com/android/calendar/Utils.java
+++ b/src/com/android/calendar/Utils.java
@@ -1401,6 +1401,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));
}