From 258da9df990445585da2edf4fefc30e255316527 Mon Sep 17 00:00:00 2001 From: Michal Brzezinski Date: Fri, 30 Sep 2022 18:29:25 +0100 Subject: [PATCH] Adding comment explaining "else" branch in onStateChange Bug: 237743330 Test: no need Change-Id: If604cc48335b4625793e7b93feae312415b0542a --- .../systemui/shade/NotificationPanelViewController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java index d7e86b6e29195..feda11f50b2c3 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java @@ -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();