Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
bd7cb45d
Commit
bd7cb45d
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
smartlist: throttle
Change-Id: If27883599f7c25dfc0e0216edf5bd67fc4db21fa
parent
1db779e4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
jami-android/libjamiclient/src/main/kotlin/net/jami/smartlist/SmartListPresenter.kt
+1
-0
1 addition, 0 deletions
.../src/main/kotlin/net/jami/smartlist/SmartListPresenter.kt
with
1 addition
and
0 deletions
jami-android/libjamiclient/src/main/kotlin/net/jami/smartlist/SmartListPresenter.kt
+
1
−
0
View file @
bd7cb45d
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment