diff options
author | Ned Burns <pixel@google.com> | 2019-02-20 12:57:29 -0500 |
---|---|---|
committer | Ned Burns <pixel@google.com> | 2019-02-21 21:15:01 -0500 |
commit | c586467ea5d8dada3ede3d942a1b84bdd97370f0 (patch) | |
tree | cf3a1a01c14f3a1d1e3ef3ec6bb53190473979f1 /rs/java/android/renderscript/ProgramStore.java | |
parent | 7b8c60e0a7a6435dce89fd87ce2400e64e8e1e95 (diff) |
Invert dependency between NEM and RowBinder
NotificationEntryManager needs a NotificationRowBinder to inflate views
and bind them. Previously, it did this by calling Dependency.get(), but
this resulted in a circular dependency.
We can't fully break the circularity, but we can make it more explicit.
This CL inverts the dependency -- now the NEM needs someone else to give
it a row binder before it can function properly. Among other things,
this makes testing easier.
This CL allows us to isolate the interface between the NEM and NRB; in
later CLs we can make explicit the async inflation callback between the
NEM and the NRB and finally rewrite most of the NEM tests.
Test: atest
Change-Id: Ibb6ca4416456021a3c0a3679d1d74248fca18af6
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions