Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0e0aed43 authored by Yunfan Chen's avatar Yunfan Chen
Browse files

Use window metrics to estimate visible display frame

When the view is not attached to a view tree, we used the display
getRealSize to get an estimated result. This will be affected by the
Configuration hidden fields. It will not always have the stable result
with changes in the configuration.

Use the window metrics instead to estimate the result when the View has
access to the WindowManager to make the result better matches the
description of the public API.

Test: CTS ViewTest
Bug: 321143205
Change-Id: I823acadb0a50272b74288cfcefea2843c07a26c5
parent 31e0f961
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