Don't pass calling contexts into static services.
When initializing a service, StaticOuterContextServiceFetcher
passes the calling context to it. This causes a leak if the
service stores the context in a static variable.
Instead, pass in the application context, which will never be
freed for the life of the application, and correspondingly rename
StaticOuterContextServiceFetcher to
StaticApplicationContextServiceFetcher.
Bug: 27147995
Change-Id: Ic67ebc32df7368184c2935f0327491fdc7d69836
1 file changed