Merge "Call startObservingHealth on handler thread" into rvc-dev am: 503612127a am: 055dc4206b am: 964659a0d4

Change-Id: I78ef0f2a0d91727e77e3a7566964a3aa167498b8
This commit is contained in:
Gavin Corkery
2020-04-07 10:21:17 +00:00
committed by Automerger Merge Worker

View File

@@ -315,6 +315,7 @@ public class PackageWatchdog {
// causing any elapsed time to be deducted from all existing packages before we add new // causing any elapsed time to be deducted from all existing packages before we add new
// packages. This maintains the invariant that the elapsed time for ALL (new and existing) // packages. This maintains the invariant that the elapsed time for ALL (new and existing)
// packages is the same. // packages is the same.
mLongTaskHandler.post(() -> {
syncState("observing new packages"); syncState("observing new packages");
synchronized (mLock) { synchronized (mLock) {
@@ -337,6 +338,8 @@ public class PackageWatchdog {
// Sync after we add the new packages to the observers. We may have received packges // Sync after we add the new packages to the observers. We may have received packges
// requiring an earlier schedule than we are currently scheduled for. // requiring an earlier schedule than we are currently scheduled for.
syncState("updated observers"); syncState("updated observers");
});
} }
/** /**