commit | e45d1f0edd60ce38b1d7dc62b4f82bff70c5bbb4 | [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 | 4107a064076d4f7029320980428dc8b869e5e054 | |
parent | e910403ec00c2064ceb9b0b2fe54e5077d7376ce [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