Merge "Add logging to diagnose why shade isn't closing" into udc-dev am: 511e50aca8

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

Change-Id: I3ef06d2c5514fc6fbb4b49a94ca78226dd01b0c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Justin Weir
2023-04-13 14:12:48 +00:00
committed by Automerger Merge Worker

View File

@@ -2614,6 +2614,7 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
}
mRemoteInputManager.closeRemoteInputs();
if (mLockscreenUserManager.isCurrentProfile(getSendingUserId())) {
mShadeLogger.d("ACTION_CLOSE_SYSTEM_DIALOGS intent: closing shade");
int flags = CommandQueue.FLAG_EXCLUDE_NONE;
if (reason != null) {
if (reason.equals(SYSTEM_DIALOG_REASON_RECENT_APPS)) {
@@ -2628,6 +2629,8 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
}
}
mShadeController.animateCollapseShade(flags);
} else {
mShadeLogger.d("ACTION_CLOSE_SYSTEM_DIALOGS intent: non-matching user ID");
}
} else if (Intent.ACTION_SCREEN_OFF.equals(action)) {
if (mNotificationShadeWindowController != null) {