diff options
| author | 2023-09-28 12:20:27 +0000 | |
|---|---|---|
| committer | 2023-09-28 12:22:39 +0000 | |
| commit | faf9e70cf4e1747f572362694b10201a6cefcfe2 (patch) | |
| tree | 8071e373039a55c8739ba62183c826ded306e19a /libs/input/PointerController.cpp | |
| parent | 6c29a6fb047c2426201e7bc855afd9ba6526607a (diff) | |
flag guarding getWindowInsets()
Reading insets was needed to properly centre the lock icon.
The insets were only included when calculating the mid-point when the lockscreen.enable_landscape flag is enabled. However, the insets where read outside of flag-guarding.
Now, the insets are only read if the flag is on.
Bug: 296571001
Bug: 293252410
Bug: 300763027
Test: LockIconViewControllerTest
Change-Id: I915642c7d6afc52b1f00d0874bd0bbd215feefa1
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions