Merge "Fix a regression in pausing activity immediately on sleep" into klp-dev

This commit is contained in:
Amith Yamasani
2013-09-19 22:42:50 +00:00
committed by Android (Google) Code Review

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) {