Merge "Do not buzzing for each progress of bugreport notification"

This commit is contained in:
Rhed Jao
2020-06-10 02:37:14 +00:00
committed by Android (Google) Code Review

View File

@@ -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());
}