OSDN Git Service

Always reevaluate rules when a new service is added.
[android-x86/frameworks-base.git] / services / core / java / com / android / server / notification / ZenModeConditions.java
index 0945065..86ca97d 100644 (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