summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Yunfan Chen <yunfanc@google.com> 2024-02-22 16:50:38 +0900
committer Yunfan Chen <yunfanc@google.com> 2024-02-29 19:09:29 +0900
commit0e0aed43232b98fc49fa69e551c0340c57c274b6 (patch)
tree750f280dcbde502380fcd26b9e422fe019bada7b /libs/androidfw/misc.cpp
parent31e0f961839161a12f2bc0892c6b4261697d5781 (diff)
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
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions