diff options
author | Yorke Lee <yorkelee@google.com> | 2017-01-06 14:59:58 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2017-01-12 10:34:07 -0800 |
commit | 1329407c624f63eea0509abe01a3ac2da98327d6 (patch) | |
tree | eee3097eb511f6889ff66bd1c96e25d80f46acfc /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | f88f0f1b1eee1c76e3f38bee7163ec59bee36038 (diff) |
Dispatch task change notifications to local callbacks in same thread
Currently, task change notifications are dispatched to the
listeners on a separate thread even if the callback lives in
the system process. As a result, they happen too late to
respond to certain key events in a task's state change.
This CL fixes this issue by tracking local and remote listeners
separately, and notifying local listeners directly instead of
on the handler thread.
Test: Manual - verify that local callbacks delivered to the
TaskWindowPlacer are called in the same thread as the main
ActivityManager thread.
Test: run TaskStackChangedListenerTest
Bug: 33664258
Change-Id: I92f20d539558054368acfa836bd2476e9ae81b33
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions