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

Skip to content
Commit 8c0a1a6e authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Reduce unnecessary context creation for display

Previously, getMinimalTaskSizeDp can be called twice for a display
rotation change, which may add 2~4ms latency.

Since per-display Resources is available, it can use directly
without creation. Also move the invocation to onConfigurationChanged
because display info change doesn't mean it will affect the result
of a resource.

Bug: 253610885
Test: DisplayContentTests#testSetForcedDensity

Change-Id: Iefc3af1eae55c6c4b8951124f104b81f5be3867f
parent 2c270dd7
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