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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
de8ec561
Commit
de8ec561
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
contact search: fix selection glitch
GitLab:
#1221
Change-Id: I4279891bde91c0d97bec3ed1058b401571f85728
parent
7f8bab96
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/app/src/main/java/cx/ring/tv/search/ContactSearchFragment.kt
+2
-16
2 additions, 16 deletions
.../src/main/java/cx/ring/tv/search/ContactSearchFragment.kt
with
2 additions
and
16 deletions
jami-android/app/src/main/java/cx/ring/tv/search/ContactSearchFragment.kt
+
2
−
16
View file @
de8ec561
/*
/*
* Copyright (C) 2004-2022 Savoir-faire Linux Inc.
* Copyright (C) 2004-2023 Savoir-faire Linux Inc.
*
* Author: Michel Schmit <michel.schmit@savoirfairelinux.com>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -58,16 +56,10 @@ class ContactSearchFragment : BaseSearchFragment<ContactSearchPresenter>(),
...
@@ -58,16 +56,10 @@ class ContactSearchFragment : BaseSearchFragment<ContactSearchPresenter>(),
override
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?)
{
override
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?)
{
super
.
onViewCreated
(
view
,
savedInstanceState
)
super
.
onViewCreated
(
view
,
savedInstanceState
)
mTextEditor
=
view
.
findViewById
(
R
.
id
.
lb_search_text_editor
)
mTextEditor
=
view
.
findViewById
(
R
.
id
.
lb_search_text_editor
)
}
override
fun
onResume
()
{
super
.
onResume
()
mTextEditor
?.
requestFocus
()
mTextEditor
?.
requestFocus
()
}
}
override
fun
getResultsAdapter
():
ObjectAdapter
{
override
fun
getResultsAdapter
():
ObjectAdapter
=
mRowsAdapter
return
mRowsAdapter
}
override
fun
onQueryTextChange
(
newQuery
:
String
):
Boolean
{
override
fun
onQueryTextChange
(
newQuery
:
String
):
Boolean
{
presenter
.
queryTextChanged
(
newQuery
)
presenter
.
queryTextChanged
(
newQuery
)
...
@@ -125,12 +117,6 @@ class ContactSearchFragment : BaseSearchFragment<ContactSearchPresenter>(),
...
@@ -125,12 +117,6 @@ class ContactSearchFragment : BaseSearchFragment<ContactSearchPresenter>(),
contacts
.
conversations
.
map
{
item
->
ContactCard
(
item
,
Card
.
Type
.
CONTACT_ONLINE
)
},
diff
)
contacts
.
conversations
.
map
{
item
->
ContactCard
(
item
,
Card
.
Type
.
CONTACT_ONLINE
)
},
diff
)
}
}
}
}
if
(
scrollToTop
)
{
rowsSupportFragment
.
view
?.
postDelayed
({
rowsSupportFragment
.
verticalGridView
.
smoothScrollToPosition
(
0
)
mTextEditor
?.
requestFocus
()
},
300
)
}
}
}
override
fun
clearSearch
()
{
override
fun
clearSearch
()
{
...
...
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