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

Skip to content
Commit 4c6e5423 authored by Anton Potapov's avatar Anton Potapov
Browse files

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
parent 5620e115
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment