added abilyti to observe collection

This commit is contained in:
Gavriil Sitnikov 2016-06-07 01:29:58 +03:00
parent e2e4c47871
commit 59d5b03e2d
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,11 @@ public abstract class ObservableCollectionAdapter<TItem, TViewHolder extends Obs
return observableCollectionSubject.getValue();
}
@NonNull
public Observable<ObservableCollection<TItem>> observeObservableCollection() {
return observableCollectionSubject.distinctUntilChanged();
}
protected int itemsOffset() {
return 0;
}