Further simplify SimpleRecyclerViewMcp handling
Add observers automatically, which allows constructing the MCP and the adapter inline. To support this, split ListObservable into an interface and an implementation class ListObservableImpl, so that RecyclerViewAdapter.Delegate extends ListObservable. Also, remove the payload type (which currently is Void everywhere) from SimpleRecyclerViewMcp and its ViewBinder. It will be reintroduced in a dedicated MCP class for adapters that do support partial binding. Bug: 847420 Change-Id: Ie34108836560e0a63a4259150366640d2fcfbe6b Reviewed-on: https://chromium-review.googlesource.com/1112016Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Reviewed-by:
Friedrich Horschig <fhorschig@chromium.org> Commit-Queue: Bernhard Bauer <bauerb@chromium.org> Cr-Commit-Position: refs/heads/master@{#570026}
Showing
Please register or sign in to comment