Reland "Remove Dependency.get from NavigationBar."
This reverts commit be525911ceab3fc0cf727f7a9c8d204b480e0bf9.
The original CL fixed the SystemUI crash when create dependency for
DumpManager.
Two more modify from the original CL:
- NavigationBar should create for each display, so there cannot use the
injected WindowManager to add/remove view.
- The LightBarController is also create for each display, so the
DumpManager should only register for default display, otherwise the
registerDumpable will throw exception when creating for non-default
display.
Bug: 199481992
Test: atest MultiDisplaySystemDecorationTests
Test: atest SystemUITests
Change-Id: I2be879f85fcc9f5f83cb33a564a3a25d8d9a3254
9 files changed