diff options
Diffstat (limited to 'packages/Shell/src')
-rw-r--r-- | packages/Shell/src/com/android/shell/BugreportProgressService.java | 9 |
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); |