summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Fabian Kozynski <kozynski@google.com> 2022-04-08 13:57:06 -0400
committer Fabian Kozynski <kozynski@google.com> 2022-04-11 14:49:46 -0400
commit87457295922774f044c16ca8bbf936f92940d90b (patch)
tree64fa03d5c61d99e476bf553adac357cd56ed42c3 /libs/androidfw/StringPool.cpp
parent3fda2bf279c1a354e069a10929e2a87908703032 (diff)
Make unregister receiver "sync".
Before this CL, unregistering a receiver was done asynchronously in BroadcastDispatcher. This meant that after a call to unregisterReceiver, there was a period of time in which broadcasts may still be dispatched for that receiver. After this change, we mark receivers as pending removal, blocking any received broadcast to be dispatched while its being removed. Also, remove the double posting to the same handler thread. Instead, we use the fact that we know that UserBroadcastDispatcher will only be called from BroadcastDispatcher in the background thread to prevent re-posting. Fixes: 193941146 Test: atest SystemUITests Test: everything seems to be working fine Change-Id: I345f4d7ad918381188d553bd2b89643d11ae3d6c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions