diff options
author | Guang Zhu <guangzhu@google.com> | 2012-08-17 18:14:55 -0700 |
---|---|---|
committer | Guang Zhu <guangzhu@google.com> | 2012-08-17 19:46:03 -0700 |
commit | c8698cb92ef83e96b3c7776be9b47d174095bc15 (patch) | |
tree | b88c6115147083b544f1493f5ae04c7fbf314ab1 | |
parent | 781c3404311c081a4f41f15628851aeede0172d6 (diff) | |
download | extras-c8698cb92ef83e96b3c7776be9b47d174095bc15.tar.gz |
Explicitly use an intent chooser for sending bugreport
This enables:
1. an explicit title for intent chooser, so that the user is
aware that chosen action is for sending out bugreport
2. the original intent has new task flag that causes
ResolveActivity to finish() when stop()ped. This means that
if intent is fired when screen is off (common scenario now
because bugreport takes a long time), the chooser will not be
shown
Bug: 6864596
Change-Id: I6cce2d1390c8ac24b15d26e9ba80a845222a1c18
-rw-r--r-- | bugmailer/src/com/android/commands/sendbug/SendBug.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bugmailer/src/com/android/commands/sendbug/SendBug.java b/bugmailer/src/com/android/commands/sendbug/SendBug.java index f6d0db73..84a488df 100644 --- a/bugmailer/src/com/android/commands/sendbug/SendBug.java +++ b/bugmailer/src/com/android/commands/sendbug/SendBug.java @@ -66,6 +66,7 @@ public class SendBug { final Uri screenshotUri = screenShot != null ? Uri.fromFile(screenShot) : null; intent = getSendMailIntent(bugreportUri, screenshotUri); + intent = Intent.createChooser(intent, "Send Bugreport via"); } if (intent != null) { final IActivityManager mAm = ActivityManagerNative.getDefault(); |