Merge "When waiting for activity to finish don't reset" into klp-dev

This commit is contained in:
Craig Mautner
2013-09-10 22:11:57 +00:00
committed by Android (Google) Code Review

View File

@@ -620,7 +620,13 @@ final class ActivityStack {
}
void clearLaunchTime(ActivityRecord r) {
r.displayStartTime = r.fullyDrawnStartTime = 0;
// Make sure that there is no activity waiting for this to launch.
if (mStackSupervisor.mWaitingActivityLaunched.isEmpty()) {
r.displayStartTime = r.fullyDrawnStartTime = 0;
} else {
mStackSupervisor.removeTimeoutsForActivityLocked(r);
mStackSupervisor.scheduleIdleTimeoutLocked(r);
}
}
void awakeFromSleepingLocked() {