Scroll the list to top after each new filter

This commit is contained in:
Benoit Marty 2019-07-17 12:18:45 +02:00
parent 8e12f71535
commit b935b9311e
1 changed files with 3 additions and 0 deletions

View File

@ -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))
}