forked from GitHub-Mirror/riotX-android
Scroll the list to top after each new filter
This commit is contained in:
parent
8e12f71535
commit
b935b9311e
@ -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…
Reference in New Issue
Block a user