Skip to content
Commit c1bbce19 authored by Dave Mankoff's avatar Dave Mankoff
Browse files

Build StatusBar Controllers with a Subcomponent

This is an important change. We have a lot of circular dependencies
and strange order of operations in our view inflation and controller
attachment. This is a first attempt to straighten them out.

This change introduces the idea of a Dagger "Subcomponent". When
inflating top-level views related to the StatusBar (only
StatusBarWindowView for now), we supply those views to the
StatusBarComponent, which can then be used to created injected
controllers. That is to say, the views do not create their
controllers directly.

Subcomponent lifetime can be tied to view lifecycle events, allowing
controllers to be implicitly destroyed and recreated along with their
views.

Bug: 144503618
Test: atest SystemUITests && manual
Change-Id: I68252c55810b4a8f280f43596416cf99f8f17306
parent 0fc0ed81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment