Skip to content
Commit aede0419 authored by Milton Wu's avatar Milton Wu
Browse files

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
parent 47c160d5
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