Obey rule instance limit.

Do not show a rule type in the 'Add rule' dialog if the number of
current instances of that rule equals the max number of instances 
allowed by that rule type.

Bug: 25563007
Change-Id: I18f2598c6d92aec93c27755bb6b04c460ee294d0
This commit is contained in:
Julia Reynolds
2016-01-15 10:11:16 -05:00
parent 8e7c979bad
commit 0cca0f5c02
4 changed files with 32 additions and 9 deletions

View File

@@ -12,4 +12,5 @@ public class ZenRuleInfo {
public ComponentName serviceComponent;
public boolean isSystem;
public CharSequence packageLabel;
public int ruleInstanceLimit = -1;
}