disable invalid automation rule
This commit is contained in:
parent
756957ed8c
commit
0a798d1ea4
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ class AutomationEvent(private val injector: HasAndroidInjector) {
|
|||
fun areActionsValid(): Boolean {
|
||||
var result = true
|
||||
for (action in actions) result = result && action.isValid()
|
||||
if (!result) isEnabled = false
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue