diff options
| author | 2016-01-29 13:55:35 -0800 | |
|---|---|---|
| committer | 2016-01-29 14:05:31 -0800 | |
| commit | c8e2b6092c0fbf87e71f81fd2cffbb29ff8d9039 (patch) | |
| tree | 45095a711d91dbd0e7fb87984aa5e18701c7103f /packages/Shell/src | |
| parent | 18b5892950b7f21e66c9268129323cbc0e865699 (diff) | |
Fixed check for empty title.
Otherwise, if user entered "Details" but not "Summary", the
ACTION_SEND_MULTIPLE subject would be empty.
BUG: 26768595
Change-Id: I955ab5e8f05eba9fbfa6fe65eabb6a8a8e28c5b4
Diffstat (limited to 'packages/Shell/src')
| -rw-r--r-- | packages/Shell/src/com/android/shell/BugreportProgressService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java index 5cebdc2859bf..a93caca735a2 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -786,7 +786,8 @@ public class BugreportProgressService extends Service { intent.addCategory(Intent.CATEGORY_DEFAULT); intent.setType(mimeType); - final String subject = info.title != null ? info.title : bugreportUri.getLastPathSegment(); + final String subject = !TextUtils.isEmpty(info.title) ? + info.title : bugreportUri.getLastPathSegment(); intent.putExtra(Intent.EXTRA_SUBJECT, subject); // EXTRA_TEXT should be an ArrayList, but some clients are expecting a single String. |