Always reevaluate rules when a new service is added.

Otherwise the condition providers may never get an
onSubscribe call and may not turn on at the right time.

Bug: 26981870
Change-Id: Ia622597f10cc26f7c34ece1748013655543f488f
This commit is contained in:
Julia Reynolds
2016-04-21 10:24:27 -04:00
parent d82e981cf3
commit 7c9350a940

View File

@@ -99,9 +99,7 @@ public class ZenModeConditions implements ConditionProviders.Callback {
@Override
public void onServiceAdded(ComponentName component) {
if (DEBUG) Log.d(TAG, "onServiceAdded " + component);
if (isAutomaticActive(component)) {
mHelper.setConfigAsync(mHelper.getConfig(), "zmc.onServiceAdded");
}
mHelper.setConfigAsync(mHelper.getConfig(), "zmc.onServiceAdded");
}
@Override