am 9a4afb3f: am c3e7f87b: Merge "Fix issue #17740687: Device does not boot after flashing LMP dev TOT(1478825) build." into lmp-dev

* commit '9a4afb3f5172cdd68e14fb0e48f48d619420cd89':
  Fix issue #17740687: Device does not boot after flashing LMP dev TOT(1478825) build.
This commit is contained in:
Dianne Hackborn
2014-10-01 23:41:07 +00:00
committed by Android Git Automerger

View File

@@ -2243,9 +2243,13 @@ public final class ActivityStackSupervisor implements DisplayListener {
r.idle = true;
//Slog.i(TAG, "IDLE: mBooted=" + mBooted + ", fromTimeout=" + fromTimeout);
if (!mService.mBooted && isFrontStack(r.task.stack)) {
mService.mBooted = true;
enableScreen = true;
if (isFrontStack(r.task.stack) || fromTimeout) {
booting = mService.mBooting;
mService.mBooting = false;
if (!mService.mBooted) {
mService.mBooted = true;
enableScreen = true;
}
}
}
@@ -2273,9 +2277,6 @@ public final class ActivityStackSupervisor implements DisplayListener {
mFinishingActivities.clear();
}
booting = mService.mBooting;
mService.mBooting = false;
if (mStartingUsers.size() > 0) {
startingUsers = new ArrayList<UserStartedState>(mStartingUsers);
mStartingUsers.clear();