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
diff --git a/bugmailer/src/com/android/commands/sendbug/SendBug.java b/bugmailer/src/com/android/commands/sendbug/SendBug.java
index f6d0db7..84a488d 100644
--- a/bugmailer/src/com/android/commands/sendbug/SendBug.java
+++ b/bugmailer/src/com/android/commands/sendbug/SendBug.java
@@ -66,6 +66,7 @@
             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();