commit | e0cf7597ff8028f8b4ac9f01d69dc3c27601cccf | [log] [tgz] |
---|---|---|
author | Fabián Kozynski <kozynski@google.com> | Thu Oct 05 10:40:23 2023 -0400 |
committer | Fabián Kozynski <kozynski@google.com> | Thu Oct 05 11:54:24 2023 -0400 |
tree | 80de80a7894bc7330c9aa4b2bacd4a04763292c7 | |
parent | 97ee1bfd92ebae14a0b01a9d3f49912bb86981c3 [diff] |
Move CommandQueue.addCallback later In QSFragment, the callback was tied to the lifecycle of the fragment, so it was only added after all the views had been assigned. As we don't have a lifecycle here, we move it at the end of the onComponentCreated. Also, just for protection, add null checks inside the callback. Test: atest QSImplTest Fixes: 303180152 Change-Id: I42130dd12e8c1cb3cf908147cda153bf4e6702d1