Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3e7f87b authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #17740687: Device does not boot after flashing LMP dev...

Merge "Fix issue #17740687: Device does not boot after flashing LMP dev TOT(1478825) build." into lmp-dev
parents f9033048 9449a616
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -2243,11 +2243,15 @@ public final class ActivityStackSupervisor implements DisplayListener {
            r.idle = true;

            //Slog.i(TAG, "IDLE: mBooted=" + mBooted + ", fromTimeout=" + fromTimeout);
            if (!mService.mBooted && isFrontStack(r.task.stack)) {
            if (isFrontStack(r.task.stack) || fromTimeout) {
                booting = mService.mBooting;
                mService.mBooting = false;
                if (!mService.mBooted) {
                    mService.mBooted = true;
                    enableScreen = true;
                }
            }
        }

        if (allResumedActivitiesIdle()) {
            if (r != null) {
@@ -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();