From 786a7d75603e7e68d2982ae59ab9832f0f35be19 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 17 Jul 2019 12:20:11 +0200 Subject: [PATCH] Rename id --- .../features/home/room/list/RoomListFragment.kt | 12 ++++++------ vector/src/main/res/layout/fragment_room_list.xml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/list/RoomListFragment.kt b/vector/src/main/java/im/vector/riotx/features/home/room/list/RoomListFragment.kt index f944c2ea..74873e51 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/list/RoomListFragment.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/list/RoomListFragment.kt @@ -112,7 +112,7 @@ class RoomListFragment : VectorBaseFragment(), RoomSummaryController.Listener, O } // Hide FAB when list is scrolling - epoxyRecyclerView.addOnScrollListener( + roomListEpoxyRecyclerView.addOnScrollListener( object : RecyclerView.OnScrollListener() { override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) { createChatFabMenu.removeCallbacks(showFabRunnable) @@ -137,7 +137,7 @@ class RoomListFragment : VectorBaseFragment(), RoomSummaryController.Listener, O fun filterRoomsWith(filter: String) { // Scroll the list to top - epoxyRecyclerView.scrollToPosition(0) + roomListEpoxyRecyclerView.scrollToPosition(0) roomListViewModel.accept(RoomListActions.FilterWith(filter)) } @@ -153,12 +153,12 @@ class RoomListFragment : VectorBaseFragment(), RoomSummaryController.Listener, O private fun setupRecyclerView() { val layoutManager = LinearLayoutManager(context) val stateRestorer = LayoutManagerStateRestorer(layoutManager).register() - epoxyRecyclerView.layoutManager = layoutManager - epoxyRecyclerView.itemAnimator = RoomListAnimator() + roomListEpoxyRecyclerView.layoutManager = layoutManager + roomListEpoxyRecyclerView.itemAnimator = RoomListAnimator() roomController.listener = this roomController.addModelBuildListener { it.dispatchTo(stateRestorer) } - stateView.contentView = epoxyRecyclerView - epoxyRecyclerView.setController(roomController) + stateView.contentView = roomListEpoxyRecyclerView + roomListEpoxyRecyclerView.setController(roomController) } private val showFabRunnable = Runnable { diff --git a/vector/src/main/res/layout/fragment_room_list.xml b/vector/src/main/res/layout/fragment_room_list.xml index d4b6bd0f..c3fa4530 100644 --- a/vector/src/main/res/layout/fragment_room_list.xml +++ b/vector/src/main/res/layout/fragment_room_list.xml @@ -8,7 +8,7 @@ android:background="?riotx_header_panel_background">