OSDN Git Service

Explicitly use an intent chooser for sending bugreport
authorGuang Zhu <guangzhu@google.com>
Sat, 18 Aug 2012 01:14:55 +0000 (18:14 -0700)
committerGuang Zhu <guangzhu@google.com>
Sat, 18 Aug 2012 02:46:03 +0000 (19:46 -0700)
commitc8698cb92ef83e96b3c7776be9b47d174095bc15
treeb88c6115147083b544f1493f5ae04c7fbf314ab1
parent781c3404311c081a4f41f15628851aeede0172d6
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
bugmailer/src/com/android/commands/sendbug/SendBug.java