Merge "Fix Notification redaction when power cycling a non-dozing device while occluded." into sc-dev am: 279ecc9dc1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19459069

Change-Id: I2797e1eae6a942734511f466fe32303011918854
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jeff DeCew
2022-08-02 19:32:14 +00:00
committed by Automerger Merge Worker
2 changed files with 18 additions and 0 deletions

View File

@@ -328,6 +328,13 @@ public class NotificationStackScrollLayoutController {
}
};
/**
* Recalculate sensitiveness without animation; called when waking up while keyguard occluded.
*/
public void updateSensitivenessForOccludedWakeup() {
mView.updateSensitiveness(false, mLockscreenUserManager.isAnyProfilePublicMode());
}
/**
* Set the overexpansion of the panel to be applied to the view.
*/

View File

@@ -4159,6 +4159,17 @@ public class StatusBar extends SystemUI implements DemoMode,
mWakeUpCoordinator.setFullyAwake(true);
mBypassHeadsUpNotifier.setFullyAwake(true);
mWakeUpCoordinator.setWakingUp(false);
if (isOccluded() && !mDozeParameters.canControlUnlockedScreenOff()) {
// When the keyguard is occluded we don't use the KEYGUARD state which would
// normally cause these redaction updates. If AOD is on, the KEYGUARD state is used
// to show the doze, AND UnlockedScreenOffAnimationController.onFinishedWakingUp()
// would force a KEYGUARD state that would take care of recalculating redaction.
// So if AOD is off or unsupported we need to trigger these updates at screen on
// when the keyguard is occluded.
mLockscreenUserManager.updatePublicMode();
mNotificationPanelViewController.getNotificationStackScrollLayoutController()
.updateSensitivenessForOccludedWakeup();
}
if (mLaunchCameraWhenFinishedWaking) {
mNotificationPanelViewController.launchCamera(
false /* animate */, mLastCameraLaunchSource);