Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c9350a9 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

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
parent d82e981c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -99,10 +99,8 @@ 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");
    }
    }

    @Override
    public void onConditionChanged(Uri id, Condition condition) {