diff --git a/src/main/java/ru/touchin/roboswag/components/listing/adapters/ObservableCollectionAdapter.java b/src/main/java/ru/touchin/roboswag/components/listing/adapters/ObservableCollectionAdapter.java index d12a871..62301f1 100644 --- a/src/main/java/ru/touchin/roboswag/components/listing/adapters/ObservableCollectionAdapter.java +++ b/src/main/java/ru/touchin/roboswag/components/listing/adapters/ObservableCollectionAdapter.java @@ -77,12 +77,9 @@ public abstract class ObservableCollectionAdapter observableCollection != null ? observableCollection.loadItem(0) : Observable.empty())); historyPreLoadingObservable = uiBindable.untilStop(observableCollectionSubject - .switchMap(observableCollection -> observableCollection != null - ? Observable.just(observableCollection).concatWith(observableCollection.observeChanges().map(ignored -> observableCollection)) - : Observable.empty()) - .switchMap(changedObservableCollection -> { - final int size = changedObservableCollection.size(); - return changedObservableCollection.loadRange(size, size + PRE_LOADING_COUNT); + .switchMap(observableCollection -> { + final int size = observableCollection.size(); + return observableCollection.loadRange(size, size + PRE_LOADING_COUNT); })); }