am 638918a2: am 722b15e0: Merge "Fix a regression in pausing activity immediately on sleep" into klp-dev

* commit '638918a2681cff345b9e3bd5ff7b170a874125dc':
  Fix a regression in pausing activity immediately on sleep
This commit is contained in:
Amith Yamasani
2013-09-20 11:20:03 -07:00
committed by Android Git Automerger

View File

@@ -2105,12 +2105,12 @@ public final class ActivityStackSupervisor {
mService.mHandler.removeMessages(LAUNCH_TIMEOUT_MSG);
}
}
checkReadyForSleepLocked();
}
boolean shutdownLocked(int timeout) {
boolean timedout = false;
goingToSleepLocked();
checkReadyForSleepLocked();
final long endTime = System.currentTimeMillis() + timeout;
while (true) {