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

Commit 543339fe authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Update NPMS.setRestrictBackgroundUL to notify listeners.

- Move the notifying listeners part to setRestrictBackgroundUL so
  that we can avoid notifying if the restrict background update fails.
- Add tracing code for setRestrictBackgroundUL.
- Remove any existing restrict_background_changed messages in the queue
  before posting a new one so that listeners will be notified only for
  the latest update.

Fixes: 36328002
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Change-Id: I83c6270aa9f2d38cd418d2d88bfe59394b111692
parent 07fa4544
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