summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaiyiz <kaiyiz@codeaurora.org>2014-04-11 16:36:52 +0800
committerAdnan <adnan@cyngn.com>2014-09-03 15:41:22 -0700
commit32cc6fff097b164365de2b30f4c1d5ddbf67abb2 (patch)
treee6da3affc94692adb9d164ec373711253ba19741
parent1b1dd3af5e9fdefbb10cd3e3333aaf0108ae5ec9 (diff)
downloadandroid_packages_apps_UnifiedEmail-32cc6fff097b164365de2b30f4c1d5ddbf67abb2.tar.gz
android_packages_apps_UnifiedEmail-32cc6fff097b164365de2b30f4c1d5ddbf67abb2.tar.bz2
android_packages_apps_UnifiedEmail-32cc6fff097b164365de2b30f4c1d5ddbf67abb2.zip
Email: Should back to Email after recording audio as attachment
When attach file in a new email, doAttach() will call Intent.createChooser() to create an app list for usr to choose. The Intent being sended to Sound Recorder doesn't contain value of "exit_after_record". Thus, when finish recording the audio, Sound Recorder will not automatically exit and return to Email UI. Add true value for "exit_after_record" to the Intent that will be sended to Sound Recorder in doAttach(). CRs-Fixed: 646256 Change-Id: I4b9c846763f5100cdca12cbf7e9df7db22cc8b45
-rw-r--r--src/com/android/mail/compose/ComposeActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/mail/compose/ComposeActivity.java b/src/com/android/mail/compose/ComposeActivity.java
index 443481197..ba8e966f1 100644
--- a/src/com/android/mail/compose/ComposeActivity.java
+++ b/src/com/android/mail/compose/ComposeActivity.java
@@ -3051,6 +3051,7 @@ public class ComposeActivity extends Activity implements OnClickListener, OnNavi
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
+ i.putExtra("exit_after_record", true); // For Sound Recorder
i.setType(type);
mAddingAttachment = true;
startActivityForResult(Intent.createChooser(i, getText(R.string.select_attachment_type)),