summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-03-25 22:19:34 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-03-25 22:19:34 +0000
commita090dbd9421e558e293e392a3e9bccc3100c1d77 (patch)
tree5eab99cf4745c591cc864f39ddbd753c2b33354a
parent127e3957d6f39b511a042c9ec779e9d3bcf3cd7b (diff)
parent0b304c36f625b51c14b4bf6194c7059b81b05088 (diff)
Merge "Show predefined title and description in finished notification" into rvc-dev
-rw-r--r--packages/Shell/src/com/android/shell/BugreportProgressService.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java
index 64e52376effd..0ae00e1ac8b5 100644
--- a/packages/Shell/src/com/android/shell/BugreportProgressService.java
+++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java
@@ -1019,8 +1019,11 @@ public class BugreportProgressService extends Service {
* Wraps up bugreport generation and triggers a notification to share the bugreport.
*/
private void onBugreportFinished(BugreportInfo info) {
+ if (!TextUtils.isEmpty(info.shareTitle)) {
+ info.setTitle(info.shareTitle);
+ }
Log.d(TAG, "Bugreport finished with title: " + info.getTitle()
- + " and shareDescription: " + info.shareDescription);
+ + " and shareDescription: " + info.shareDescription);
info.finished = new AtomicBoolean(true);
synchronized (mLock) {
@@ -1795,7 +1798,9 @@ public class BugreportProgressService extends Service {
/**
* User-provided, detailed description of the bugreport; when set, will be added to the body
- * of the {@link Intent#ACTION_SEND_MULTIPLE} intent.
+ * of the {@link Intent#ACTION_SEND_MULTIPLE} intent. This is shown in the app where the
+ * bugreport is being shared as an attachment. This is not related/dependant on
+ * {@code shareDescription}.
*/
private String description;
@@ -2130,7 +2135,6 @@ public class BugreportProgressService extends Service {
return new BugreportInfo[size];
}
};
-
}
@GuardedBy("mLock")