commit | 66d22c8a59836b2e3f22074e358696275ed10ab7 | [log] [tgz] |
---|---|---|
author | Dave Mankoff <mankoff@google.com> | Wed Sep 11 14:14:45 2019 -0400 |
committer | Dave Mankoff <mankoff@google.com> | Thu Sep 12 20:52:15 2019 +0000 |
tree | 3085b0d73d1814da47a0c8a0b9c94a2cbf77f2b2 | |
parent | 1eb71b84a2b0004c76e8ea9f1809ab1817699430 [diff] |
Ensure that the Application is constructed before any Service. This fixes dependency injection issues and brings Service construction in line with the way that Activities are created. Specifically, this ensures that there is always a reference to a Context available at the time a Service is constructed, such that the Context can then be injected into the constructor of the Service. Bug: 140868981 Test: atest SystemUITests Change-Id: If85e4106fef8c2fd12f7ca9e8b7fd686af62e29b