Skip to content
Commit 13452f6e authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Apply "most-recent" delivery policy to ACTION_USER_RESTRICTIONS_CHANGED.

This allows us to skip any older ACTION_USER_RESTRICTIONS_CHANGED
broadcasts waiting to be delivered when a new broadcast is dispatched.
It should be safe to discard the older ones as the broadcast is only
indicating that something has changed.

Bug: 265079364
Test: atest tests/devicepolicy/src/android/devicepolicy/cts/UserRestrictionsTest.java
Test: atest hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
Change-Id: I97c7495f13520b5c8a894b76343deae20d1824e9
parent 020ca899
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