diff options
| author | 2017-05-30 20:28:39 +0000 | |
|---|---|---|
| committer | 2017-05-30 20:28:39 +0000 | |
| commit | e775158c6bf19ce91145fe71d3bdf5aa78cd6447 (patch) | |
| tree | ae448cf7899cef9cb0d47f5ee3a6402c0254abd7 /packages/Shell/src | |
| parent | 0cf1febd4938eb7725600fd85bad29547d772316 (diff) | |
| parent | 4d473c65cb866603ed4fe46651a576f6c2da6e92 (diff) | |
Merge "Fix #62169466 bug report sharing options empty" into oc-dev
am: 4d473c65cb
Change-Id: I13b21aa8b731e09d22955d177589635427c1fb39
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 1ddbcad8e844..348b02aeda4a 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -966,17 +966,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); |