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

Skip to content
Commit 8ce76f45 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Pointer Icon Refactor: Cache all used display contexts

The display context is used to load pointer icons. Before the
pointer icon refactor, the pointer icon could only be present on one
display, so we only cached a single context to load pointer icons.
Additionally, the cached context was not updated when the display
changed.

Update the code to lazily cache the context for all displays, and clear
the cache when the display changes or is removed.

Bug: 293587049
Test: atest InputManagerServiceTests
Change-Id: I5355d1fdde0118b3e85383e7f95475bfccc5e72d
parent 1fbbba06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment