diff --git a/vector/src/main/java/im/vector/app/features/spaces/SpaceListFragment.kt b/vector/src/main/java/im/vector/app/features/spaces/SpaceListFragment.kt index ad131cbd57..b358a8c1a6 100644 --- a/vector/src/main/java/im/vector/app/features/spaces/SpaceListFragment.kt +++ b/vector/src/main/java/im/vector/app/features/spaces/SpaceListFragment.kt @@ -31,21 +31,25 @@ import im.vector.app.core.extensions.cleanup import im.vector.app.core.extensions.configureWith import im.vector.app.core.platform.StateView import im.vector.app.core.platform.VectorBaseFragment -import im.vector.app.databinding.FragmentGroupListBinding +import im.vector.app.databinding.FragmentSpaceListBinding import im.vector.app.features.home.HomeActivitySharedAction import im.vector.app.features.home.HomeSharedActionViewModel import org.matrix.android.sdk.api.session.room.model.RoomSummary import javax.inject.Inject +/** + * This Fragment is displayed in the navigation drawer [im.vector.app.features.home.HomeDrawerFragment] and + * is displaying the space hierarchy, with some actions on Spaces. + */ class SpaceListFragment @Inject constructor( private val spaceController: SpaceSummaryController -) : VectorBaseFragment(), SpaceSummaryController.Callback { +) : VectorBaseFragment(), SpaceSummaryController.Callback { private lateinit var sharedActionViewModel: HomeSharedActionViewModel private val viewModel: SpaceListViewModel by fragmentViewModel() - override fun getBinding(inflater: LayoutInflater, container: ViewGroup?): FragmentGroupListBinding { - return FragmentGroupListBinding.inflate(inflater, container, false) + override fun getBinding(inflater: LayoutInflater, container: ViewGroup?): FragmentSpaceListBinding { + return FragmentSpaceListBinding.inflate(inflater, container, false) } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { diff --git a/vector/src/main/res/layout/fragment_group_list.xml b/vector/src/main/res/layout/fragment_space_list.xml similarity index 92% rename from vector/src/main/res/layout/fragment_group_list.xml rename to vector/src/main/res/layout/fragment_space_list.xml index cdf0ffeb9a..d54ffa7155 100644 --- a/vector/src/main/res/layout/fragment_group_list.xml +++ b/vector/src/main/res/layout/fragment_space_list.xml @@ -10,6 +10,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:overScrollMode="always" - tools:listitem="@layout/item_group" /> + tools:listitem="@layout/item_space" />