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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user