Skip to content
Snippets Groups Projects
Commit bd7cb45d authored by Adrien Béraud's avatar Adrien Béraud
Browse files

smartlist: throttle

Change-Id: If27883599f7c25dfc0e0216edf5bd67fc4db21fa
parent 1db779e4
Branches
Tags
No related merge requests found
...@@ -53,6 +53,7 @@ class SmartListPresenter @Inject constructor( ...@@ -53,6 +53,7 @@ class SmartListPresenter @Inject constructor(
super.bindView(view) super.bindView(view)
view.setLoading(true) view.setLoading(true)
mCompositeDisposable.add(conversationFacade.getFullConversationList(accountSubject, debouncedQuery) mCompositeDisposable.add(conversationFacade.getFullConversationList(accountSubject, debouncedQuery)
.throttleLatest(150, TimeUnit.MILLISECONDS, uiScheduler)
.observeOn(uiScheduler) .observeOn(uiScheduler)
.subscribe { list -> .subscribe { list ->
val v = this.view ?: return@subscribe val v = this.view ?: return@subscribe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment