Fix characters erased from the Search field when the result are coming (#545)
This commit is contained in:
parent
3739e50d46
commit
b3d649a4d9
|
@ -11,7 +11,7 @@ Other changes:
|
|||
-
|
||||
|
||||
Bugfix:
|
||||
-
|
||||
- Fix characters erased from the Search field when the result are coming (#545)
|
||||
|
||||
Translations:
|
||||
-
|
||||
|
|
|
@ -143,10 +143,15 @@ class PublicRoomsFragment : VectorBaseFragment(), PublicRoomsController.Callback
|
|||
viewModel.loadMore()
|
||||
}
|
||||
|
||||
var initialValueSet = false
|
||||
|
||||
override fun invalidate() = withState(viewModel) { state ->
|
||||
if (publicRoomsFilter.query.toString() != state.currentFilter) {
|
||||
// For initial filter
|
||||
publicRoomsFilter.setQuery(state.currentFilter, false)
|
||||
if (!initialValueSet) {
|
||||
initialValueSet = true
|
||||
if (publicRoomsFilter.query.toString() != state.currentFilter) {
|
||||
// For initial filter
|
||||
publicRoomsFilter.setQuery(state.currentFilter, false)
|
||||
}
|
||||
}
|
||||
|
||||
// Populate list with Epoxy
|
||||
|
|
Loading…
Reference in New Issue