Initialise Notification*Manager dependencies directly.
Currently, adding a new dependency to any of these classes means updating the constructors of any subclasses, and the construction in the corresponding SystemUIFactory classes and subclasses. In particular, updating these in separate vendor/ projects is annoying. So, initialise the dependencies using field initialisers. The downside is that it's harder to notice circular Dependencys. Bug: 63874929 Bug: 62602530 Test: runtest systemui Test: Compile and run Change-Id: I21d58d0cc0edeb6d53fb7b387c9baeec7bd80589
Loading
Please register or sign in to comment