commit | aede04193fec7a498e73814dd41bb455a1cf0715 | [log] [tgz] |
---|---|---|
author | Milton Wu <mingjuwu@google.com> | Wed May 18 17:44:16 2022 +0800 |
committer | Milton Wu <mingjuwu@google.com> | Fri May 20 01:45:13 2022 +0800 |
tree | ef9d13f267d21c4898b3854500e8ec836a159c94 | |
parent | 47c160d5374d66ee829329478681987ef0f6ed42 [diff] |
Fix punch hole wrong position during rotation 1. Updating front camera protection info as super class of DisplayCutoutBaseView during rotation changed. 2. Fix incorrect comparing inside onPreDraw() 3. Use getDisplayInfo() to get real-time updated rotation info. Bug: 233011725 Test: atest ScreenDecorationsTest Test: Enable front camera, and check punch hole during rotating device Change-Id: I2b8ef62ec2e815c649b35bbad1cb4c4fc8f7eeb7