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

Skip to content
Commit c909845d authored by Steven Thomas's avatar Steven Thomas
Browse files

Return correct config from getActiveConfig()

In Android Q we made changing the active display config via
setActiveConfig() or setAllowedDisplayConfigs() a non-blocking call, but
we didn't update getActiveConfig() to account for this, which made it
possible for clients to call setActiveConfig() followed by
getActiveConfig() and get the previous config value back, instead of the
value the client just set.

Make getActiveConfig() first check to see if a config change is pending,
and if so, return the pending value instead of the current value.

Bug: 139392135

Test: Ran with some extra logs, confirmed we now return the pending
value (when we have one) from getActiveConfig().

Change-Id: I7665fd1f29073b2a3f5414defef0103270bf1f9f
parent 0a7c50d3
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