Skip to content
Commit 0dc092cc authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Clean some unnecessary abstraction of ATMI about keyguard

Since ATMS and WM were put in the same package with the same lock,
the abstraction is no longer needed and can be called directly.
Move notifyKeyguardFlagsChanged to DisplayContent because most of
the operations are associated to the display.

This contains one logic change is that if isKeyguardLocked() is false,
then skip notifyKeyguardFlagsChanged() because visibility won't change.

That reduces unnecessary invocation of root.ensureActivitiesVisible
such as an activity uses FLAG_SHOW_WHEN_LOCKED while device is unlocked.

Bug: 163976519
Test: CtsActivityManagerDeviceTestCases

Change-Id: I13e7d965df62c44eb07e9db7c7ac33ab990212bd
parent f774fb2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment