commit | 33a31d93afc61e0ea2775b7aa49d2817833d417c | [log] [tgz] |
---|---|---|
author | Austin Wang <wangaustin@google.com> | Fri May 19 15:10:01 2023 -0700 |
committer | Austin Wang <wangaustin@google.com> | Fri May 26 15:59:28 2023 -0700 |
tree | 82feb7f3a87143995a0c87f423f327caec41e5cb | |
parent | 24e09b6686e7b15d6596391ecfde60e76596fbe9 [diff] |
Fix race condition when accessing ClockChangeListener Make sure clients register and unregister listeners on the main thread. Only switch to background thread for `mutateSetting`, so mutate consecutively happened in order. The call site decides if they need a new job. Bug: 274403822 Test: set clock options via WPP Change-Id: I7c14ae912c551a78cee664793eef043e961e75a1