diff options
author | Fabian Kozynski <kozynski@google.com> | 2020-03-27 13:29:15 -0400 |
---|---|---|
committer | Fabian Kozynski <kozynski@google.com> | 2020-03-27 13:32:49 -0400 |
commit | aaf4c5e47b0876f46b5d3151b4068a32d0bfdf27 (patch) | |
tree | 9a85966d39b425075a49ea2723352fad33afe95d /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 5cb264d9df806f3433d4065d8d9d7ac8c4e96269 (diff) |
Use bg thread for BroadcastDispatcher registering
There is no need for the broadcastdispatcher to register in the main
thread. Moving to the bg thread reduces the chance of our main thread
being busy when many classes subscribe in a short period of time.
Test: manual (logs show BroadcastDispatcher is receiving broadcasts)
Test: atest UserBroadcastDispatcherTest
Fixes: 151684085
Change-Id: Iac6fd9e3b9f7bed3879620b4f262cc68f8ffdcd3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions