summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
authorRhed Jao <rhedjao@google.com>2020-06-09 19:36:18 +0800
committerRhed Jao <rhedjao@google.com>2020-06-09 19:36:18 +0800
commitd8b3398edf249bccdf9f0268c86e0f99fd9fcad9 (patch)
tree0f34f9b8b0704bd776e90ad5a650d1cc1a8b3c1c /packages/Shell/src
parent5c70eb259b660e94f0441bcf26f916b6d3cf97e5 (diff)
Do not buzzing for each progress of bugreport notification
Only alert bugreport notification at the begining and end. Bug: 146135200 Test: Manually changing the notification settings to default from silent. Change-Id: Ie955266ad8a7a27a9dc74743e276b5e9c7a2d6fb
Diffstat (limited to 'packages/Shell/src')
-rw-r--r--packages/Shell/src/com/android/shell/BugreportProgressService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java
index f6c2ee264cb5..c2cb09cc30b4 100644
--- a/packages/Shell/src/com/android/shell/BugreportProgressService.java
+++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java
@@ -1245,6 +1245,7 @@ public class BugreportProgressService extends Service {
.setContentText(content)
.setContentIntent(PendingIntent.getService(mContext, info.id, shareIntent,
PendingIntent.FLAG_UPDATE_CURRENT))
+ .setOnlyAlertOnce(false)
.setDeleteIntent(newCancelIntent(mContext, info));
if (!TextUtils.isEmpty(info.getName())) {
@@ -1284,6 +1285,7 @@ public class BugreportProgressService extends Service {
.setLocalOnly(true)
.setColor(context.getColor(
com.android.internal.R.color.system_notification_accent_color))
+ .setOnlyAlertOnce(true)
.extend(new Notification.TvExtender());
}