Ignore duplicate keyguardGoingAway request.

SysUI calls ActivityTaskManager#keyguardGoingAway to start keyguard
going away process. In case SysUI calls the binder call again while
keyguard is going away, ActivityTaskManager ignores it.

Bug: 215201490
Test: atest KeyguardTransitionTests
Change-Id: Iaee8c7cd25f0a89c5e90bd6fc0185dd54fb1d99e
This commit is contained in:
Issei Suzuki
2022-02-08 13:58:16 +00:00
parent d6111dd183
commit 22bbc35996

View File

@@ -235,7 +235,7 @@ class KeyguardController {
*/
void keyguardGoingAway(int displayId, int flags) {
final KeyguardDisplayState state = getDisplayState(displayId);
if (!state.mKeyguardShowing) {
if (!state.mKeyguardShowing || state.mKeyguardGoingAway) {
return;
}
Trace.traceBegin(TRACE_TAG_WINDOW_MANAGER, "keyguardGoingAway");