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:
@@ -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 */);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user