commit | 44408260ba99eea55f7c0ec02778bb13d83c3262 | [log] [tgz] |
---|---|---|
author | Steve McKay <smckay@google.com> | Tue Jan 05 15:27:17 2016 -0800 |
committer | Steve McKay <smckay@google.com> | Tue Jan 05 15:50:35 2016 -0800 |
tree | ff65decbf9e47d1d6ad86be3ab62c181582fd9be | |
parent | ab6fb6fcaf9b2406697971f7464d331b6d1d46b5 [diff] |
Don't proxy calls to DocumentsAdapter in MultiSelManager. We were bouncing calls out to the adapter pulled from RecyclerView, but the adapter is easy to write a test double for and we can readily inject the adapter when needed at runtime. Eliminates unnecessary indirection. Also, protect against failure when documents can't be loaded for delete. Change-Id: Ief6585bf2e3e4fd407d801d485a9d7cd888b8500