mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-01 04:33:48 +03:00
Scroll the list to top after each new filter
This commit is contained in:
parent
8e12f71535
commit
b935b9311e
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ class RoomListFragment : VectorBaseFragment(), RoomSummaryController.Listener, O
|
|||
}
|
||||
|
||||
fun filterRoomsWith(filter: String) {
|
||||
// Scroll the list to top
|
||||
epoxyRecyclerView.scrollToPosition(0)
|
||||
|
||||
roomListViewModel.accept(RoomListActions.FilterWith(filter))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue