commit | 3856ac4be9cfb0589da5f5fcb948b69c6e075313 | [log] [tgz] |
---|---|---|
author | Bonian Chen <bonianchen@google.com> | Tue Apr 19 16:59:14 2022 +0800 |
committer | Bonian Chen <bonianchen@google.com> | Wed Apr 20 12:47:39 2022 +0000 |
tree | 419d61d4bb614677220ed6a9f925160893d1461a | |
parent | 8cb0439d9c46cd2b997d3d26ac30dd04ce69a445 [diff] |
[Settings] Code refactor for async Lifecycle listening This is an extension of LifecycleCallbackAdapter. A postResult(T) and a Consumer<T> is designed for supporting pass result back to UI thread, and is invoked only when required. Bug: 229689535 Test: unit test Change-Id: I0ef5afc31cd23aa865a2dd1d05f9b212242c2e41 (cherry picked from commit 5d2a76cbb4daf504547a6196d5ae9c5e79e8da48)