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

Commit 15bc8358 authored by Danesh M's avatar Danesh M Committed by Gerrit Code Review
Browse files

NetworkPolicyManager : Process low power mode change on background thread

Since PowerManagerService runs in the same process, the callbacks occur on
the invocation thread. updateRulesForGlobalChangeLocked can take quite long
to process which in turns blocks the system processes background thread queue
and delays things like switching to/from power saver mode.

Address this by processing the action on our background thread via the handler,
and to not queue up multiple calls.

CYNGNOS-786

Change-Id: Ibbcae795f0138a1e1836f0df92f905178d34b684
(cherry picked from commit 8ff13dea)
parent 2a6dc128
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