Added rule noop

This commit is contained in:
M66B
2019-10-01 12:40:54 +02:00
parent 9f1dfac07a
commit 43612ecd2b
4 changed files with 8 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ public class EntityRule {
static final int TYPE_COPY = 7;
static final int TYPE_SNOOZE = 8;
static final int TYPE_IGNORE = 9;
static final int TYPE_NOOP = 10;
static final String ACTION_AUTOMATION = BuildConfig.APPLICATION_ID + ".AUTOMATION";
static final String EXTRA_RULE = "rule";
@@ -265,6 +266,8 @@ public class EntityRule {
Log.i("Executing rule=" + type + ":" + name + " message=" + message.id);
switch (type) {
case TYPE_NOOP:
return true;
case TYPE_SEEN:
return onActionSeen(context, message, true);
case TYPE_UNSEEN: