Add dnd conditional
Change-Id: I81eabf274bde05358c60bb63e1ed6d1bd447ce55
This commit is contained in:
@@ -130,6 +130,7 @@ public class ConditionManager {
|
||||
private void addMissingConditions() {
|
||||
addIfMissing(AirplaneModeCondition.class);
|
||||
addIfMissing(HotspotCondition.class);
|
||||
addIfMissing(DndCondition.class);
|
||||
}
|
||||
|
||||
private void addIfMissing(Class<? extends Condition> clz) {
|
||||
@@ -144,6 +145,8 @@ public class ConditionManager {
|
||||
return new AirplaneModeCondition(this);
|
||||
} else if (HotspotCondition.class == clz) {
|
||||
return new HotspotCondition(this);
|
||||
} else if (DndCondition.class == clz) {
|
||||
return new DndCondition(this);
|
||||
}
|
||||
try {
|
||||
Constructor<?> constructor = clz.getConstructor(ConditionManager.class);
|
||||
|
Reference in New Issue
Block a user