Merge "Make the transition sleep failsafe stricter" into udc-dev

This commit is contained in:
Evan Rosky
2023-03-21 01:48:40 +00:00
committed by Android (Google) Code Review

View File

@@ -534,7 +534,7 @@ public class Transitions implements RemoteCallable<Transitions> {
}
if (info.getType() == TRANSIT_SLEEP) {
if (activeIdx > 0) {
if (activeIdx > 0 || !mActiveTransitions.isEmpty() || mReadyTransitions.size() > 1) {
// Sleep starts a process of forcing all prior transitions to finish immediately
finishForSleep(null /* forceFinish */);
return;