commit | 3bb0be437ad17882162e2c8e7a48dd5dfc003d4b | [log] [tgz] |
---|---|---|
author | Lucas Dupin <[email protected]> | Wed Aug 10 17:39:22 2022 -0700 |
committer | Lucas Dupin <[email protected]> | Fri Aug 12 10:12:28 2022 -0700 |
tree | 6cf3fa1f65cfb4d2e881a0d3f164b7e17ef04b0f | |
parent | 6110cca06fcdc65f12586481511e0193c82d8cd3 [diff] |
Prefer Executor injection Injecting a @Main Executor makes dependencies clearer and simplifies unit tests. We don't need to deal with loopers, MainLooper annotations, etc. Test: atest GetMainLooperViaContextDetectorTest Bug: 238923086 Change-Id: Iff3bce716e4b3d9903a6056e269a3a6cde5f05c1