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

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