removed submitList with callback
This commit is contained in:
parent
79c9336c33
commit
2bc496562e
|
|
@ -71,24 +71,6 @@ open class DelegationListAdapter<TItem>(config: AsyncDifferConfig<TItem>) : Recy
|
|||
*/
|
||||
fun submitList(list: List<TItem>?) = differ.submitList(list)
|
||||
|
||||
/**
|
||||
* Pass a new List to the AdapterHelper. Adapter updates will be computed on a background
|
||||
* thread.
|
||||
* <p>
|
||||
* If a List is already present, a diff will be computed asynchronously on a background thread.
|
||||
* When the diff is computed, it will be applied (dispatched to the {@link ListUpdateCallback}),
|
||||
* and the new List will be swapped in.
|
||||
* <p>
|
||||
* The commit callback can be used to know when the List is committed, but note that it
|
||||
* may not be executed. If List B is submitted immediately after List A, and is
|
||||
* committed directly, the callback associated with List A will not be run.
|
||||
*
|
||||
* @param newList The new List.
|
||||
* @param commitCallback Optional runnable that is executed when the List is committed, if
|
||||
* it is committed.
|
||||
*/
|
||||
fun submitList(list: List<TItem>, commitCallback: () -> Unit) = differ.submitList(list, commitCallback)
|
||||
|
||||
/**
|
||||
* Same as [submitList] with fast simple remove all items of a previous list
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue