Use platform WindowMetrics to get window bounds
Getting current insets is a long operation. This is why platform WindowMetricsController provides WindowMetrics with insetsProvider instead of resolving those inplace. AndroidX WindowMetricsCalculator resolves those insets when translates platform WindowMetrics to their androidX counterpart, which causes a framedrop. This change swaps androidX implementation with native one because we only need screen bounds to determine its size. Flag: EXEMPT bugfix Fixes: 363545395 Test: atest VolumePanelScreenshotTest Test: manual on foldable Change-Id: Ie1bd7a666097be6714b3a8a0134302e4d59ba58c
Loading
Please register or sign in to comment