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
Loading
Please register or sign in to comment