Adding comment explaining "else" branch in onStateChange

Bug: 237743330
Test: no need
Change-Id: If604cc48335b4625793e7b93feae312415b0542a
This commit is contained in:
Michal Brzezinski
2022-09-30 18:29:25 +01:00
parent 4e528edd31
commit 258da9df99

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();