Disable notification shade close animation when occluded.

This is causing a flicker when an activity opens over keyguard. The
keyguard is occluded by the activity, so we shouldn't animate behind the
occlusion.

Bug: 242860396
Test: manually on device when opening showWhenLocked activity over the
keyguard

Change-Id: Ie57a69815bf7a9460b0f90408010535eb9b9e172
This commit is contained in:
Lucas Silva
2022-09-01 10:22:15 -04:00
parent b2f2546b5b
commit bed558989b

View File

@@ -589,7 +589,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
public void reset(boolean hideBouncerWhenShowing) {
if (mShowing) {
// Hide quick settings.
mNotificationPanelViewController.resetViews(/* animate= */ true);
mNotificationPanelViewController.resetViews(/* animate= */ !mOccluded);
// Hide bouncer and quick-quick settings.
if (mOccluded && !mDozing) {
mCentralSurfaces.hideKeyguard();