Update occludes keyguard status for all stacks.

When finishing current occluded activity, we should also consider to
update the mTopActivityOccludesKeyguard for all stacks, otherwise the
next occluded status might be wrong.

Bug: 154334456
Test: atest KeyguardTests
Change-Id: Id8253eb97581a9dd52ab748117d9cd4cc63a206d
This commit is contained in:
wilsonshih
2020-04-22 12:11:28 +08:00
parent 35c6b8f0ab
commit 9720ca224a

View File

@@ -2672,7 +2672,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
if (isState(PAUSED)
&& mStackSupervisor.getKeyguardController().isKeyguardLocked()
&& getStack().topActivityOccludesKeyguard()) {
getStack().ensureActivitiesVisible(null /* starting */, 0 /* configChanges */,
getDisplay().ensureActivitiesVisible(null /* starting */, 0 /* configChanges */,
false /* preserveWindows */, false /* notifyClients */);
}