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

Commit cfac92b3 authored by Biswarup Pal's avatar Biswarup Pal
Browse files

Cache ViewConfiguration instances per device

Currently, ViewConfiguration instances are cached based on
display density. This means that displays belonging to different
devices can end up using the same ViewConfiguration instance, if
they have the same density (this can happen when an app is having
multiple activities on multiple devices at the same time, such as
one activity on the phone and another on Chromebook). This change
ensures that we make the caching per device by constructing a key
made of deviceId (associated with the context) and the display
density.

Test: atest ViewConfigurationTest
Bug: 405726390
Flag: android.companion.virtualdevice.flags.viewconfiguration_apis
Change-Id: Ie5953150af530c6f48ea57f15b011da097f353bf
parent 9346183e
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