commit | 706706fd7a2b814ed998ec8b8a149b32d88f0998 | [log] [tgz] |
---|---|---|
author | Austin Wang <wangaustin@google.com> | Tue May 30 15:53:13 2023 -0700 |
committer | Austin Wang <wangaustin@google.com> | Tue May 30 23:20:04 2023 +0000 |
tree | 27fcbe97df182eb383e864b9405f167a7bae2892 | |
parent | a0636139706bd9a60bad2f6d33a18ecd8c81d61c [diff] |
Make ClockRegistry and its provider singleton `ClockRegistry`, 'ClockRegistryProvider` and `PluginManager` should all be singleton. Considering ag/23407197, keep a set of `LifecycleOwner` whenever the registry associated with a new owner, and only unregister listeners when the last owner leaves. Bug: 284535120 Test: set small/dynamic clock with WPP resume/destroy Change-Id: I8c8d2899c1d223fb3171506f6f316393086e02ca