Merge "Adding comment explaining "else" branch in onStateChange" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-10-04 10:14:04 +00:00
committed by Android (Google) Code Review

View File

@@ -4678,6 +4678,11 @@ public final class NotificationPanelViewController extends PanelViewController {
}
}
} else {
// this else branch means we are doing one of:
// - from KEYGUARD and SHADE (but not expanded shade)
// - from SHADE to KEYGUARD
// - from SHADE_LOCKED to SHADE
// - getting notified again about the current SHADE or KEYGUARD state
final boolean animatingUnlockedShadeToKeyguard = oldState == SHADE
&& statusBarState == KEYGUARD
&& mScreenOffAnimationController.isKeyguardShowDelayed();