Do not buzzing for each progress of bugreport notification
Only alert bugreport notification at the begining and end.
Bug: 146135200
Bug: 175287931
Test: Manually changing the notification settings to default
from silent.
Change-Id: Ie955266ad8a7a27a9dc74743e276b5e9c7a2d6fb
Merged-In: Ie955266ad8a7a27a9dc74743e276b5e9c7a2d6fb
This commit is contained in:
@@ -1248,6 +1248,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())) {
|
||||
@@ -1287,6 +1288,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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user