|
|
|
@ -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:
|
|
|
|
|