Added uuid to rules

This commit is contained in:
M66B
2022-06-27 08:57:35 +02:00
parent 258773cc9d
commit 825f800bf9
5 changed files with 2796 additions and 11 deletions

View File

@@ -1184,6 +1184,10 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
Log.e(ex);
}
EntityRule existing = db.rule().getRuleByUUID(rule.uuid);
if (existing != null)
db.rule().deleteRule(existing.id);
db.rule().insertRule(rule);
}
}