summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorDave Mankoff <mankoff@google.com>2019-11-25 11:27:36 -0500
committerDave Mankoff <mankoff@google.com>2019-11-25 13:14:13 -0500
commitc1bbce198bc6f581a0077e9e353dce10f9e4ea99 (patch)
treede55ed6e991d57d5e32b47475cdcde04ff54c60e /tools/aapt2/java/JavaClassGenerator.cpp
parent0fc0ed81cfe29cc2488e51233836535079f8adf6 (diff)
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions