Merge "Call startObservingHealth on handler thread" into rvc-dev am: 503612127a

Change-Id: Icab327e2e4d3576a8652ff312db1a1011e2083aa
This commit is contained in:
Gavin Corkery
2020-04-07 09:56:19 +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");
});
} }
/** /**