Do not buzzing for each progress of bugreport notification am: 52e7d23f53 am: 186d884b05
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532901 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4bfc7ae9c68f16ba9daf8229c459be055ae86682
This commit is contained in:
@@ -1248,6 +1248,7 @@ public class BugreportProgressService extends Service {
|
|||||||
.setContentText(content)
|
.setContentText(content)
|
||||||
.setContentIntent(PendingIntent.getService(mContext, info.id, shareIntent,
|
.setContentIntent(PendingIntent.getService(mContext, info.id, shareIntent,
|
||||||
PendingIntent.FLAG_UPDATE_CURRENT))
|
PendingIntent.FLAG_UPDATE_CURRENT))
|
||||||
|
.setOnlyAlertOnce(false)
|
||||||
.setDeleteIntent(newCancelIntent(mContext, info));
|
.setDeleteIntent(newCancelIntent(mContext, info));
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(info.getName())) {
|
if (!TextUtils.isEmpty(info.getName())) {
|
||||||
@@ -1287,6 +1288,7 @@ public class BugreportProgressService extends Service {
|
|||||||
.setLocalOnly(true)
|
.setLocalOnly(true)
|
||||||
.setColor(context.getColor(
|
.setColor(context.getColor(
|
||||||
com.android.internal.R.color.system_notification_accent_color))
|
com.android.internal.R.color.system_notification_accent_color))
|
||||||
|
.setOnlyAlertOnce(true)
|
||||||
.extend(new Notification.TvExtender());
|
.extend(new Notification.TvExtender());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user