summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
authorAmit Pawar <amitpawar@google.com>2017-05-30 20:39:37 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-30 20:39:37 +0000
commit44ff1b7e7858d1a75da64f559ae6764acf3906e3 (patch)
tree3a248709574f775148c420c6a63c879c43a2b938 /packages/Shell/src
parenta99219248da735356574dcfea26b58a8199ccc2a (diff)
parente775158c6bf19ce91145fe71d3bdf5aa78cd6447 (diff)
Merge "Fix #62169466 bug report sharing options empty" into oc-dev am: 4d473c65cb
am: e775158c6b Change-Id: Ice0e3330502330dde934d7e7544e466fcffcacca
Diffstat (limited to 'packages/Shell/src')
-rw-r--r--packages/Shell/src/com/android/shell/BugreportProgressService.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java
index 279cca78b8c3..988b9865c7ec 100644
--- a/packages/Shell/src/com/android/shell/BugreportProgressService.java
+++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java
@@ -958,17 +958,24 @@ public class BugreportProgressService extends Service {
}
final Intent notifIntent;
+ boolean useChooser = true;
// Send through warning dialog by default
if (getWarningState(mContext, STATE_UNKNOWN) != STATE_HIDE) {
notifIntent = buildWarningIntent(mContext, sendIntent);
+ // No need to show a chooser in this case.
+ useChooser = false;
} else {
notifIntent = sendIntent;
}
notifIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// Send the share intent...
- sendShareIntent(mContext, notifIntent);
+ if (useChooser) {
+ sendShareIntent(mContext, notifIntent);
+ } else {
+ mContext.startActivity(notifIntent);
+ }
// ... and stop watching this process.
stopProgress(id);