forked from jens/Automation
ringtone
This commit is contained in:
@ -748,4 +748,15 @@ public class Rule implements Comparable<Rule>
|
||||
{
|
||||
return ActivityPermissions.havePermissionsForRule(this, Miscellaneous.getAnyContext());
|
||||
}
|
||||
|
||||
public static Rule getByName(String ruleName)
|
||||
{
|
||||
for(Rule r : Rule.getRuleCollection())
|
||||
{
|
||||
if(r.getName().equals(ruleName))
|
||||
return r;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user