Skip reporting removed raw messages

pull/200/head
M66B 3 years ago
parent f345fb8e0c
commit 7618dd949f

@ -620,17 +620,19 @@ class Core {
ops.remove(op); ops.remove(op);
int resid = context.getResources().getIdentifier( if (!MessageHelper.isRemoved(ex)) {
"title_op_title_" + op.name, int resid = context.getResources().getIdentifier(
"string", "title_op_title_" + op.name,
context.getPackageName()); "string",
String title = (resid == 0 ? null : context.getString(resid)); context.getPackageName());
if (title != null) { String title = (resid == 0 ? null : context.getString(resid));
NotificationCompat.Builder builder = if (title != null) {
getNotificationError(context, "warning", title, ex); NotificationCompat.Builder builder =
nm.notify(op.name + ":" + op.message, getNotificationError(context, "warning", title, ex);
NotificationHelper.NOTIFICATION_TAGGED, nm.notify(op.name + ":" + op.message,
builder.build()); NotificationHelper.NOTIFICATION_TAGGED,
builder.build());
}
} }
} else { } else {

Loading…
Cancel
Save