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

Commit bae58027 authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Merge "Possibly fix deadlock." into nyc-dev

am: a0424c72

* commit 'a0424c72':
  Possibly fix deadlock.
parents ea5b8849 a0424c72
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -234,12 +234,16 @@ public class ConditionProviders extends ManagedServices {
                final ConditionRecord r = getRecordLocked(c.id, info.component, true /*create*/);
                r.info = info;
                r.condition = c;
            }
        }
        final int N = conditions.length;
        for (int i = 0; i < N; i++) {
            final Condition c = conditions[i];
            if (mCallback != null) {
                mCallback.onConditionChanged(c.id, c);
            }
        }
    }
    }

    public IConditionProvider findConditionProvider(ComponentName component) {
        if (component == null) return null;